django / asgiref

ASGI specification and utilities
https://asgi.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.46k stars 207 forks source link

Add Type Annotations to `asgiref` Module #427

Closed davitacols closed 8 months ago

davitacols commented 8 months ago

Description: I propose adding type annotations to the functions in the asgiref module to enhance code readability and provide better tooling support.

Changes Proposed

Benefits:

Additional Context: This change aims to enhance the maintainability and clarity of the asgiref codebase by incorporating type annotations.

andrewgodwin commented 8 months ago

We already have type annotations for most of the main functions, so I'm going to close this as not-a-bug; if there's specific functions that aren't typed that you think would help, feel free to open a specific issue about those.