Skip to content

Commit

Permalink
Tweak B019 desc (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Mar 21, 2022
1 parent 0069532 commit 77dc992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -132,7 +132,7 @@ data available in ``ex``.

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

**B019**: Use of ``functools.lru_cache`` or ``functools.cache`` on class methods
**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.

Expand Down
2 changes: 1 addition & 1 deletion bugbear.py
Expand Up @@ -957,7 +957,7 @@ def visit(self, node):
)
B019 = Error(
message=(
"B019 Use of `functools.lru_cache` or `functools.cache` on class methods "
"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."
)
Expand Down

0 comments on commit 77dc992

Please sign in to comment.