Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move lru_cache definitions to __init__ #21

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

Miauwkeru
Copy link
Contributor

Using the lru_cache decorators on class methods, the ones that have a reference to self,
will also cache self. So we move it to the init of the class

(DIS-2913)

Using the lru_cache decorators on class methods, the ones that have a reference to `self`,
will also cache self. So we move it to the __init__ of the class

(DIS-2913)
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4ad2fc3) 55.58% compared to head (520ecb6) 55.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage   55.58%   55.58%           
=======================================
  Files           4        4           
  Lines         394      394           
=======================================
  Hits          219      219           
  Misses        175      175           
Flag Coverage Δ
unittests 55.58% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Miauwkeru Miauwkeru merged commit de0c6c5 into main Feb 20, 2024
18 checks passed
@Miauwkeru Miauwkeru deleted the DIS-2913_fix-lru-cache-self-references branch February 20, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants