Skip to content

Commit

Permalink
_compare_versions takes AwesomeVersion not str (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Aug 18, 2022
1 parent 70f88d8 commit 04f86b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awesomeversion/awesomeversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ def section(self, idx: int) -> int:
return 0

@staticmethod
def _compare_versions(version_a: str, version_b: str) -> bool:
def _compare_versions(version_a: AwesomeVersion, version_b: AwesomeVersion) -> bool:
"""Compare versions."""
for handler in (
compare_handler_container,
compare_handler_simple,
compare_handler_sections,
compare_handler_semver_modifier,
):
result = handler(AwesomeVersion(version_a), AwesomeVersion(version_b))
result = handler(version_a, version_b)
if result is not None:
return result
return False
Expand Down

0 comments on commit 04f86b8

Please sign in to comment.