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

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 (5798104) 72.24% compared to head (17ccf0d) 72.24%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   72.24%   72.24%           
=======================================
  Files           4        4           
  Lines         299      299           
=======================================
  Hits          216      216           
  Misses         83       83           
Flag Coverage Δ
unittests 72.24% <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.

dissect/ffs/ffs.py Outdated Show resolved Hide resolved
@Miauwkeru Miauwkeru merged commit 2a65405 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