1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-06 10:23:06 +03:00

Maybe I should stop putting types on :return: and :param: ...

This commit is contained in:
Athanasius 2021-03-28 12:58:07 +01:00
parent 5de4950fba
commit 4d1c6906e7

View File

@ -130,7 +130,7 @@ def appversion() -> semantic_version.Version:
""" """
Determine app version including git short hash if possible. Determine app version including git short hash if possible.
:return: str - The augmented app version. :return: The augmented app version.
""" """
if getattr(sys, 'frozen', False): if getattr(sys, 'frozen', False):
# Running frozen, so we should have a .gitversion file # Running frozen, so we should have a .gitversion file
@ -155,7 +155,7 @@ def appversion_nobuild() -> semantic_version.Version:
This will not only strip any added git short hash, but also any trailing This will not only strip any added git short hash, but also any trailing
'+<string>' in _static_appversion. '+<string>' in _static_appversion.
:return: str - App version without any build meta data. :return: App version without any build meta data.
""" """
return appversion().truncate('prerelease') return appversion().truncate('prerelease')
########################################################################### ###########################################################################