Skip to content

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)
@Miauwkeru Miauwkeru requested a review from Horofic February 20, 2024 10:13
@codecov
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (daeb308) 40.58% compared to head (9fd678b) 40.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   40.58%   40.58%           
=======================================
  Files           9        9           
  Lines         956      956           
=======================================
  Hits          388      388           
  Misses        568      568           
Flag Coverage Δ
unittests 40.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 f7be7c9 into main Feb 20, 2024
@Miauwkeru Miauwkeru deleted the DIS-2913_fix-lru-cache-self-references branch February 20, 2024 13:45
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.

3 participants