Skip to content

Advanced typing of ASGI scope dict #2628

@vytas7

Description

@vytas7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueComment on this issue if you'd like to volunteer to work on this. Thanks!typing

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions