falconry/falcon

Advanced typing of ASGI `scope` dict

Open

#2.628 aberto em 25 de abr. de 2026

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)Python (925 forks)batch import
enhancementgood first issuetyping

Métricas do repositório

Stars
 (9.293 stars)
Métricas de merge de PR
 (Mesclagem média 2d 7h) (9 fundiu PRs em 30d)

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.

Guia do colaborador