File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ data available in ``ex``.
132
132
133
133
**B018 **: Found useless expression. Either assign it to a variable or remove it.
134
134
135
- **B019 **: Use of ``functools.lru_cache `` or ``functools.cache `` on class methods
135
+ **B019 **: Use of ``functools.lru_cache `` or ``functools.cache `` on methods
136
136
can lead to memory leaks. The cache may retain instance references, preventing
137
137
garbage collection.
138
138
Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ def visit(self, node):
957
957
)
958
958
B019 = Error (
959
959
message = (
960
- "B019 Use of `functools.lru_cache` or `functools.cache` on class methods "
960
+ "B019 Use of `functools.lru_cache` or `functools.cache` on methods "
961
961
"can lead to memory leaks. The cache may retain instance references, "
962
962
"preventing garbage collection."
963
963
)
You can’t perform that action at this time.
0 commit comments