falconry/falcon

Use `ParamSpec` to type LRU cache decorators

Open

#2629 aperta il 25 apr 2026

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Python (925 fork)batch import
enhancementgood first issuetyping

Metriche repository

Star
 (9293 star)
Metriche merge PR
 (Merge medio 2g 7h) (9 PR mergiate in 30 g)

Descrizione

See here: https://github.com/falconry/falcon/pull/2599/changes#r2716854330.

Decorators like falcon.util.misc._lru_cache_* can be type using ParamSpec, allowing us to get rid of a bunch of typing ignores.

Guida contributor