From ab0f9daeb1195fcadca2d5b704a975510fe045dc Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 21 Mar 2024 17:00:55 -0400 Subject: [PATCH] make pylint happy --- pandas/_build_utils/gitversion.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/_build_utils/gitversion.py b/pandas/_build_utils/gitversion.py index 320bdf1e7cc56..9bb19beda97b8 100755 --- a/pandas/_build_utils/gitversion.py +++ b/pandas/_build_utils/gitversion.py @@ -49,9 +49,11 @@ def git_version(version: str) -> tuple[str, str]: # Only attach git tag to development versions if "dev" in version: - version += f"+git{git_date}.{ghash[:7]}" + ret_version = f"{version}+git{git_date}.{ghash[:7]}" + else: + ret_version = version - return version, ghash + return ret_version, ghash if __name__ == "__main__":