Skip to content

Commit

Permalink
Use cached_property for the major property (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Mar 5, 2025
1 parent 75a248a commit 61e0097
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 @@ -306,7 +306,7 @@ def sections(self) -> int:
)
return self._sections

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

0 comments on commit 61e0097

Please sign in to comment.