-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
run_app has incorrect typing #4957
Labels
Comments
Hello @iawells ! Nice catch! |
Otherwise I can step in and do it |
derlih
added a commit
to derlih/aiohttp
that referenced
this issue
Oct 24, 2020
asvetlov
added a commit
that referenced
this issue
Oct 24, 2020
Co-authored-by: Andrew Svetlov <[email protected]>
asvetlov
added a commit
that referenced
this issue
Oct 24, 2020
Co-authored-by: Andrew Svetlov <[email protected]>
@asvetlov shouldn't this issue be closed? |
Yes, sure! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Describe the bug
The documentation is a bit woolly:
('(str)' excludes 'None' and excludes 'a sequence of hosts'. Also, I don't think you mean 'sequence' literally.)
But it's clear from reading the code that an iterable of strings is planned for (along with several other types).
I would think you want Optional[Union[str, Iterable[str]]] - though given the following code it's maybe unclear if you think other types are also acceptable.
π‘ To Reproduce
Write some code like this and then run it though mypy
π‘ Expected behavior
If a list of strings is acceptable, then the attribute is wrong. I'm surprised mypy didn't spot it during CI, actually.
π Your version of the Python
π Your version of the aiohttp/yarl/multidict distributions
The text was updated successfully, but these errors were encountered: