falconry/falcon

Use `ParamSpec` to type LRU cache decorators

Open

#2,629 opened on Apr 25, 2026

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

Repository metrics

Stars
 (9,293 stars)
PR merge metrics
 (PR metrics pending)

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