falconry/falcon

Advanced typing of ASGI `scope` dict

Offen

#2.628 geöffnet am 25.04.2026

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (925 Forks)batch import
enhancementgood first issuetyping

Repository-Metriken

Stars
 (9.293 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 7h) (9 gemergte PRs in 30 T)

Beschreibung

Create a more advanced TypedDict or similar for annotating ASGI scope.

We could probably draw inspiration from the relevant parts of asgiref: https://github.com/django/asgiref/blob/main/asgiref/typing.py. Since these annotations are really trivial, we probably want just to reimplement the part that we use.

This would allow us to get rid of a bunch of typing ignores, see #2599.

Contributor Guide