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__ #30

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 (54d8c84) 79.10% compared to head (2cdd7aa) 79.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #30   +/-   ##
=======================================
  Coverage   79.10%   79.10%           
=======================================
  Files          15       15           
  Lines        1273     1273           
=======================================
  Hits         1007     1007           
  Misses        266      266           
Flag Coverage Δ
unittests 79.10% <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 f760731 into main Feb 20, 2024
18 checks passed
@Miauwkeru Miauwkeru deleted the DIS-2913_fix-lru-cache-self-references branch February 20, 2024 13:44
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