Skip to content

Commit

Permalink
Use cached_property for the strategy property (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Mar 5, 2025
1 parent f86d41e commit 2c4a88b
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 @@ -433,7 +433,7 @@ def strategy_description(self) -> AwesomeVersionStrategyDescription | None:
return None
return VERSION_STRATEGIES_DICT[self.strategy]

@property
@cached_property
def strategy(self) -> AwesomeVersionStrategy:
"""Return the version strategy."""
version_strategies: dict[
Expand Down

0 comments on commit 2c4a88b

Please sign in to comment.