Skip to content

Commit

Permalink
Fix few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed May 10, 2021
1 parent bdd77ab commit fff3003
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion awesomeversion/awesomeversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
) -> None:
"""Initialize AwesomeVersion."""
if isinstance(version, AwesomeVersion):
self._version = version._version
self._version: str = version._version
else:
self._version = str(version)
if isinstance(self._version, str):
Expand Down
1 change: 1 addition & 0 deletions awesomeversion/comparehandlers/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ def handler(self) -> Optional[bool]:
return int(ver_a_modifier.group(4)) > int(
ver_b_modifier.group(4)
)
return None
1 change: 1 addition & 0 deletions awesomeversion/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ def check(self) -> bool:
result: Optional[bool] = compare.handler()
if result is not None:
return result
return False

0 comments on commit fff3003

Please sign in to comment.