You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
B019: Use of functools.lru_cache or functools.cache on methods can lead to memory leaks. The cache may retain instance references, preventing garbage collection.
the above example should report a violation, as get_value() is a method. Judging from the code and #250, standalone methods do not fall into the scope of B019, thus the current description is misleading.
The text was updated successfully, but these errors were encountered:
Okay, than this seems to be a vocabulary issue/different terminology than I am used to - I have never really considered making a difference about the term "method" and "function".
I find the current wording confusing when just reading the error description of B109 for evaluation.
Example:
Given
the above example should report a violation, as
get_value()
is a method. Judging from the code and #250, standalone methods do not fall into the scope of B019, thus the current description is misleading.The text was updated successfully, but these errors were encountered: