PyCQA/flake8-bugbear

Consider adding alru_cache to B019

Open

#488 ouverte le 8 août 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Python (116 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 116 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur