Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify B019 description #237

Merged
merged 1 commit into from Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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