falconry/falcon

Use `ParamSpec` to type LRU cache decorators

Open

#2,629 opened on Apr 25, 2026

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Python (925 forks)batch import
enhancementgood first issuetyping

Repository metrics

Stars
 (9,293 stars)
PR merge metrics
 (Avg merge 2d 7h) (9 merged PRs in 30d)

Description

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.

Contributor guide