Skip to content

🐛 Fix extensions type on HTTPScope and WebsocketScope #271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2021
Merged

🐛 Fix extensions type on HTTPScope and WebsocketScope #271

merged 1 commit into from
Jun 26, 2021

Conversation

Kludex
Copy link
Contributor

@Kludex Kludex commented Jun 25, 2021

@andrewgodwin We are annotating uvicorn with asgiref now, and possibly extending this idea to Starlette. So... Thanks for maintaining it! :)

While I was annotating uvicorn, I've noticed that mypy complains about the nonexistence of "extensions" so I added it. But after looking at the ASGI specs, it doesn't look like "extensions" is mandatory. Am I wrong?

As per #221 it was decided to use Optional to optional fields, instead of making the field optional per se, so I've created this PR.

@andrewgodwin
Copy link
Member

Extensions is optional, so this seems correct. I'll land it provided the checks pass!

@andrewgodwin andrewgodwin merged commit 7c24756 into django:main Jun 26, 2021
@andrewgodwin
Copy link
Member

Great, thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants