Closed maffoo closed 11 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
ec727ca
) 97.81% compared to head (fbb6635
) 97.80%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Previously, the first time a no-arg cached method was called the decorator would make three calls:
hasattr
,object.__setattr__
,getattr
, and when called subsequently it would make two calls:hasattr
,getattr
. Here we refactor the implementation to use a sentinel value so that on the first call we only make two calls:getattr
,object.__setattr__
, and when called subsequently we only make a singlegetattr
call.