falconry/falcon

Use `ParamSpec` to type LRU cache decorators

Open

#2629 opened on Apr 25, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (9,293 stars) (925 forks)batch import
enhancementgood first issuetyping

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