falconry/falcon

Advanced typing of ASGI `scope` dict

Open

#2 628 ouverte le 25 avr. 2026

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)Python (925 forks)batch import
enhancementgood first issuetyping

Métriques du dépôt

Stars
 (9 293 stars)
Métriques de merge PR
 (Merge moyen 2j 7h) (9 PRs mergées en 30 j)

Description

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.

Guide contributeur