Skip to content

Commit 77dc992

Browse files
authored
Tweak B019 desc (#237)
1 parent 0069532 commit 77dc992

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ data available in ``ex``.
132132

133133
**B018**: Found useless expression. Either assign it to a variable or remove it.
134134

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
136136
can lead to memory leaks. The cache may retain instance references, preventing
137137
garbage collection.
138138

bugbear.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def visit(self, node):
957957
)
958958
B019 = Error(
959959
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 "
961961
"can lead to memory leaks. The cache may retain instance references, "
962962
"preventing garbage collection."
963963
)

0 commit comments

Comments
 (0)