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
try:
from twisted.internet.stdio import StandardIO, PipeAddress
except ImportError:
# fallback if pywin32 is not installed
StandardIO = None
PipeAddress = None
mypy will fail with:
src/twisted/internet/endpoints.py:45:5: error: Cannot assign multiple types to name "StandardIO" without an explicit "Type[...]" annotation [misc]
src/twisted/internet/endpoints.py:45:18: error: Incompatible types in assignment (expression has type "None", variable has type "Type[StandardIO]") [assignment]
This is a continuation of ticket:9861
In cases where an import can fail, such as:
mypy will fail with:
It will be good to clean these errors up.
Searchable metadata
The text was updated successfully, but these errors were encountered: