Skip to content
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

Align __getitem__ type with scope type #1118

Merged
merged 3 commits into from Sep 18, 2021
Merged

Align __getitem__ type with scope type #1118

merged 3 commits into from Sep 18, 2021

Conversation

sburba
Copy link
Contributor

@sburba sburba commented Dec 28, 2020

Scope does not only contain strings, see full spec here:
https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope

Fixes #1117

@JayH5 JayH5 added the typing Type annotations or mypy issues label Feb 4, 2021
Copy link
Sponsor Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

@sburba Thanks for the PR! 🎉

@Kludex Kludex merged commit 217019b into encode:master Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Type annotations or mypy issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTPConnection::__get_item__ has incorrect type signature
3 participants