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
src/twisted/python/usage.py:191:16: error: Incompatible types in assignment (expression has type "Callable[[object], int]", base class "dict" defined the type as "None") [assignment]
__hash__ = object.__hash__ # type: Callable[[object], int]
^
src/twisted/internet/serialport.py:86:5: error: Incompatible import of "SerialPort" (imported name has type "Type[twisted.internet._posixserialport.SerialPort]", local name has type
"Type[twisted.internet._win32serialport.SerialPort]") [misc]
from twisted.internet._posixserialport import SerialPort
^
src/twisted/internet/stdio.py:34:5: error: Incompatible import of "StandardIO" (imported name has type "Type[twisted.internet._posixstdio.StandardIO]", local name has type
"Type[twisted.internet._win32stdio.StandardIO]") [misc]
from twisted.internet._posixstdio import StandardIO, PipeAddress
^
src/twisted/internet/stdio.py:34:5: error: Incompatible import of "PipeAddress" (imported name has type "Type[PipeAddress]", local name has type "Type[Win32PipeAddress]") [misc]
from twisted.internet._posixstdio import StandardIO, PipeAddress
^
src/twisted/test/stdio_test_writeseq.py:34:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_write.py:36:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_producer.py:58:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_loseconn.py:48:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_hostpeer.py:33:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_halfclose.py:70:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/stdio_test_consumer.py:45:5: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/test/process_twisted.py:45:1: error: Module has no attribute "run" [attr-defined]
reactor.run()
^
src/twisted/internet/endpoints.py:45:5: error: Cannot assign multiple types to name "StandardIO" without an explicit "Type[...]" annotation [misc]
StandardIO = None # type: ignore[assignment]
^
src/twisted/internet/endpoints.py:46:5: error: Cannot assign multiple types to name "PipeAddress" without an explicit "Type[...]" annotation [misc]
PipeAddress = None # type: ignore[assignment]
src/twisted/application/twist/_options.py:73:34: error: Argument 1 to "dedent" has incompatible type "Optional[str]"; expected "str" [arg-type]
opt_reactor.__doc__ = dedent(opt_reactor.__doc__).format(
^
src/twisted/application/twist/_options.py:101:36: error: Argument 1 to "dedent" has incompatible type "Optional[str]"; expected "str" [arg-type]
opt_log_level.__doc__ = dedent(opt_log_level.__doc__).format(
^
src/twisted/application/twist/_options.py:146:37: error: Argument 1 to "dedent" has incompatible type "Optional[str]"; expected "str" [arg-type]
opt_log_format.__doc__ = dedent(opt_log_format.__doc__)
^
src/twisted/words/test/test_xpath.py:11:1: error: Module 'twisted.words.xish.xpathparser' has no attribute 'SyntaxError' [attr-defined]
from twisted.words.xish.xpathparser import SyntaxError
^
src/twisted/pair/test/test_tuntap.py:540:1: error: "Type[FakeTapDeviceTests]" has no attribute "helper" [attr-defined]
FakeTapDeviceTests.helper = TapHelper(
^
src/twisted/pair/test/test_tuntap.py:552:1: error: "Type[FakeTapDeviceWithPITests]" has no attribute "helper" [attr-defined]
FakeTapDeviceWithPITests.helper = TapHelper(
^
src/twisted/pair/test/test_tuntap.py:563:1: error: "Type[FakeTunDeviceTests]" has no attribute "helper" [attr-defined]
FakeTunDeviceTests.helper = TunHelper(
^
src/twisted/pair/test/test_tuntap.py:1334:5: error: Signature of "IPRecordingProtocol" incompatible with "datagramReceived" of supertype "IRawPacketProtocol" [override]
src/twisted/pair/test/test_tuntap.py:1349:24: error: Incompatible types in assignment (expression has type "Type[IPRecordingProtocol]", variable has type "Optional[Type[Protocol]]")
src/twisted/pair/test/test_tuntap.py:1372:24: error: Incompatible types in assignment (expression has type "Type[EthernetRecordingProtocol]", variable has type "Optional[Type[Protocol]]")
src/twisted/web/test/test_http.py:15:1: error: Module 'urllib.parse' has no attribute 'clear_cache' [attr-defined]
from urllib.parse import urlparse, urlunsplit, clear_cache, parse_qs
This is a continuation of ticket:9882
It would be good to clean up these mypy errors:
Searchable metadata
The text was updated successfully, but these errors were encountered: