You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think there is typing issue with the linked code, and the code runs fine.
Actual Behavior
main.py:15: error: Incompatible types in assignment (expression has type "AbstractEventLoop", variable has type "type[AbstractEventLoop]") [assignment]
main.py:20: error: Missing positional argument "self" in call to "close" of "AbstractEventLoop" [call-arg]
main.py:24: error: Missing positional argument "self" in call to "is_closed" of "AbstractEventLoop" [call-arg]
main.py:25: error: Incompatible types in assignment (expression has type "AbstractEventLoop", variable has type "type[AbstractEventLoop]") [assignment]
main.py:27: error: Incompatible return value type (got "type[AbstractEventLoop]", expected "AbstractEventLoop") [return-value]
main.py:30: error: Missing positional argument "future" in call to "run_until_complete" of "AbstractEventLoop" [call-arg]
Found 6 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 1.10
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files):
Python version used: 3.12, 3.11
The text was updated successfully, but these errors were encountered:
Bug Report
In certain usages,
mypy
is producing many issues with the use ofAbstractEventLoop
types.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&gist=b362a24a92c45ef1b44ecc7bf6801296
Expected Behavior
I don't think there is typing issue with the linked code, and the code runs fine.
Actual Behavior
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: