PyCQA/flake8-bugbear

Consider adding alru_cache to B019

Open

#488 geöffnet am 8. Aug. 2024

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (116 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (1.116 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

The async-lru project provides a port for Python's built-in functools.lru_cache function for asyncio.

The same rules apply here with respect to garbage collection on instance methods. As this package is maintained by aio-libs it might be worth considering extending this rule to apply to uses of this decorator.

Contributor Guide