-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DefaultEventLoopPolicy is not valid as a type / base class #7452
Comments
The bug appears to already be fixed on typeshed master as a result of #7343 (merged just seven days ago) 😃 mypy's bundled version of the typeshed stubs won't be updated until at least 0.940. For now, though, you can clone typeshed and use mypy with the |
@AlexWaygood was faster, but I agree with the analysis. |
That's fantastic. While I don't fully understand why this fixed the problem, I can verify that does in fact now pass. $ mypy tmp.py --custom-typeshed-dir ~/git/software/typeshed
Success: no issues found in 1 source file |
Before, this line was in typeshed/stdlib/asyncio/__init__.pyi Line 113 in 35bddd2
This has been changed to a star import. |
Yes, now the |
Ah, I missed that, thanks! |
The following code fails
mypy tmp.py
:with:
This MWE is copied from the Python docs here: https://docs.python.org/3/library/asyncio-policy.html#custom-policies.
Maybe this is because of the assignment here:
typeshed/stdlib/asyncio/unix_events.pyi
Lines 94 to 99 in fd750bf
The text was updated successfully, but these errors were encountered: