Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2629·falcon

Use `ParamSpec` to type LRU cache decorators

Author: vytas7Created Apr 25, 2026Updated Sep 5, 2026
Labelsenhancementtyping

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.

Source: falconry/falcon

View original on GitHubView discussion on GitHub