Skip to content

Commit

Permalink
Use cached_property for the minor property (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Mar 5, 2025
1 parent 557ca50 commit 04b4656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awesomeversion/awesomeversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def minor(self) -> AwesomeVersion | None:

return AwesomeVersion(self.section(1))

@property
@cached_property
def patch(self) -> AwesomeVersion | None:
"""
Return a AwesomeVersion representation of the patch version.
Expand Down

0 comments on commit 04b4656

Please sign in to comment.