Skip to content

Commit

Permalink
Use cached_property for the minor property (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Mar 5, 2025
1 parent 61e0097 commit 557ca50
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 @@ -323,7 +323,7 @@ def major(self) -> AwesomeVersion | None:
return None
return AwesomeVersion(self.section(0))

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

0 comments on commit 557ca50

Please sign in to comment.