PyCQA/flake8-bugbear

Consider adding alru_cache to B019

Open

#488 aperta il 8 ago 2024

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (116 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1116 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor