Skip to content

Commit

Permalink
Testing: Add type annotations to version.py; #6588
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio authored and bari12 committed Apr 8, 2024
1 parent ab8dfce commit 19ad8f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rucio/version.py
Expand Up @@ -25,21 +25,21 @@
FINAL = VERSION_INFO['final'] # This becomes true at Release Candidate time


def canonical_version_string():
def canonical_version_string() -> str:
""" Get the canonical string """
return '.'.join(filter(None, RUCIO_VERSION))


def version_string():
def version_string() -> str:
""" Get the version string """
return canonical_version_string()


def vcs_version_string():
def vcs_version_string() -> str:
""" Get the VCS version string """
return "%s:%s" % (VERSION_INFO['branch_nick'], VERSION_INFO['revision_id'])


def version_string_with_vcs():
def version_string_with_vcs() -> str:
""" Get the version string with VCS """
return "%s-%s" % (canonical_version_string(), vcs_version_string())

0 comments on commit 19ad8f0

Please sign in to comment.