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

Only emit B019 when maxsize is None in lru_cache? #310

Open
lafrech opened this issue Nov 15, 2022 · 1 comment
Open

Only emit B019 when maxsize is None in lru_cache? #310

lafrech opened this issue Nov 15, 2022 · 1 comment

Comments

@lafrech
Copy link

lafrech commented Nov 15, 2022

Shouldn't B019 be emitted only when maxsize is None, as in pylint-dev/pylint#6181?

@JelleZijlstra
Copy link
Collaborator

Not sure about this. With a bounded size it's true that the memory leak is bounded, but it's still true that you can leak a reference to a (potentially big) object this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants