PyCQA/flake8-bugbear

Consider adding alru_cache to B019

Open

#488 aberto em 8 de ago. de 2024

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (116 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (1.116 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador