Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created May 16, 2022 14:52
Show Gist options
  • Save oberstet/b5879a3a8e448c6eed2e7117fae75573 to your computer and use it in GitHub Desktop.
Save oberstet/b5879a3a8e448c6eed2e7117fae75573 to your computer and use it in GitHub Desktop.
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$ make mypy
mypy --install-types --non-interactive autobahn
autobahn/websocket/xormasker.py:51: error: Name "XorMaskerNull" already defined (possibly by an import)
autobahn/websocket/utf8validator.py:72: error: Name "Utf8Validator" already defined (possibly by an import)
autobahn/wamp/gen/wamp/proto/Yield.py:136: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Welcome.py:32: error: Cannot find implementation or library stub for module named "wamp.proto.RouterRoles"
autobahn/wamp/gen/wamp/proto/Welcome.py:85: error: Cannot find implementation or library stub for module named "wamp.Map"
autobahn/wamp/gen/wamp/proto/RouterRoles.py:32: error: Cannot find implementation or library stub for module named "wamp.proto.BrokerFeatures"
autobahn/wamp/gen/wamp/proto/RouterRoles.py:43: error: Cannot find implementation or library stub for module named "wamp.proto.DealerFeatures"
autobahn/wamp/gen/wamp/proto/Result.py:136: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Publish.py:334: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Invocation.py:164: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Interrupt.py:54: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/HelloNew.py:32: error: Cannot find implementation or library stub for module named "wamp.proto.ClientRoles"
autobahn/wamp/gen/wamp/proto/Hello.py:32: error: Cannot find implementation or library stub for module named "wamp.proto.ClientRoles"
autobahn/wamp/gen/wamp/proto/Hello.py:91: error: Cannot find implementation or library stub for module named "wamp.Map"
autobahn/wamp/gen/wamp/proto/Event.py:221: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/ClientRoles.py:32: error: Cannot find implementation or library stub for module named "wamp.proto.PublisherFeatures"
autobahn/wamp/gen/wamp/proto/ClientRoles.py:43: error: Cannot find implementation or library stub for module named "wamp.proto.SubscriberFeatures"
autobahn/wamp/gen/wamp/proto/ClientRoles.py:54: error: Cannot find implementation or library stub for module named "wamp.proto.CallerFeatures"
autobahn/wamp/gen/wamp/proto/ClientRoles.py:65: error: Cannot find implementation or library stub for module named "wamp.proto.CalleeFeatures"
autobahn/wamp/gen/wamp/proto/Challenge.py:39: error: Cannot find implementation or library stub for module named "wamp.Map"
autobahn/wamp/gen/wamp/proto/Cancel.py:47: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Call.py:157: error: Cannot find implementation or library stub for module named "wamp.proto.Principal"
autobahn/wamp/gen/wamp/proto/Authenticate.py:39: error: Cannot find implementation or library stub for module named "wamp.Map"
autobahn/nvx/_utf8validator.py:28: error: Skipping analyzing "cffi": module is installed, but missing library stubs or py.typed marker
autobahn/nvx/_utf8validator.py:28: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
autobahn/xbr/_schema.py:34: error: Skipping analyzing "zlmdb.flatbuffers.reflection.Schema": module is installed, but missing library stubs or py.typed marker
autobahn/xbr/_schema.py:35: error: Skipping analyzing "zlmdb.flatbuffers.reflection.BaseType": module is installed, but missing library stubs or py.typed marker
autobahn/xbr/_schema.py:271: error: Incompatible return value type (got "Optional[str]", expected "str")
autobahn/xbr/_schema.py:997: error: Incompatible types in assignment (expression has type "FbsObject", variable has type "FbsEnum")
autobahn/xbr/_schema.py:1000: error: Incompatible types in assignment (expression has type "FbsService", variable has type "FbsEnum")
autobahn/xbr/_schema.py:1032: error: Need type annotation for "objs_lst" (hint: "objs_lst: List[<type>] = ...")
autobahn/xbr/_schema.py:1164: error: Missing return statement
autobahn/xbr/_schema.py:1182: error: "object" has no attribute "enums"
autobahn/xbr/_schema.py:1189: error: "object" has no attribute "objs"
autobahn/xbr/_schema.py:1196: error: "object" has no attribute "services"
autobahn/websocket/compress_snappy.py:27: error: Skipping analyzing "snappy": module is installed, but missing library stubs or py.typed marker
autobahn/xbr/_mnemonic.py:33: error: Skipping analyzing "ecdsa.curves": module is installed, but missing library stubs or py.typed marker
autobahn/xbr/_eip712_member_register.py:120: error: Argument 5 to "_create_eip712_member_register" has incompatible type "Optional[str]"; expected "str"
autobahn/xbr/_wallet.py:30: error: Skipping analyzing "hkdf": module is installed, but missing library stubs or py.typed marker
autobahn/xbr/_wallet.py:106: error: Incompatible types in assignment (expression has type "bytes", variable has type "str")
autobahn/xbr/_wallet.py:109: error: Argument "context" to "expand_argon2_secret" has incompatible type "str"; expected "bytes"
autobahn/util.py:164: error: Incompatible types in assignment (expression has type "array[int]", variable has type "bytes")
autobahn/util.py:165: error: Incompatible types in assignment (expression has type "array[int]", variable has type "bytes")
autobahn/util.py:168: error: Unsupported target for indexed assignment ("bytes")
autobahn/util.py:170: error: "bytes" has no attribute "tobytes"
autobahn/wamp/types.py:1590: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[int]"; expected "int"
autobahn/wamp/types.py:1591: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[int]"; expected "int"
autobahn/wamp/types.py:1592: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[int]"; expected "int"
autobahn/wamp/types.py:1815: error: Incompatible return value type (got "Optional[Dict[str, bytes]]", expected "Dict[str, bytes]")
autobahn/wamp/types.py:1830: error: Incompatible return value type (got "Optional[Dict[str, Any]]", expected "Dict[str, Any]")
autobahn/wamp/types.py:1866: error: Incompatible return value type (got "Optional[Dict[str, Any]]", expected "Dict[str, Any]")
autobahn/wamp/types.py:1878: error: Incompatible return value type (got "Optional[Dict[str, Any]]", expected "Dict[str, Any]")
autobahn/websocket/compress.py:75: error: Incompatible types in assignment (expression has type "None", variable has type Module)
autobahn/websocket/compress.py:104: error: Skipping analyzing "snappy": module is installed, but missing library stubs or py.typed marker
autobahn/wamp/uri.py:192: error: Incompatible types in assignment (expression has type "Type[int]", target has type "Type[str]")
autobahn/wamp/uri.py:234: error: Incompatible types in assignment (expression has type "None", variable has type "Pattern[str]")
autobahn/wamp/uri.py:235: error: Incompatible types in assignment (expression has type "None", variable has type "Dict[Union[str, Any], Type[str]]")
autobahn/wamp/uri.py:241: error: Decorated property not supported
autobahn/wamp/uri.py:252: error: Decorated property not supported
autobahn/websocket/protocol.py:2564: error: "WebSocketServerProtocol" has no attribute "log"
autobahn/wamp/role.py:78: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/role.py:117: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/role.py:144: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/role.py:169: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/role.py:208: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/role.py:233: error: Incompatible types in assignment (expression has type "str", base class "RoleFeatures" defined the type as "None")
autobahn/wamp/message.py:279: error: Return value expected
autobahn/wamp/message.py:602: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:847: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1098: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1184: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1259: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1334: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1447: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:1753: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:2731: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:2803: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:2964: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:3039: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:3155: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:3264: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:3958: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:4028: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:4385: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:4523: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:4815: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5046: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5121: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5231: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5339: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5705: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/message.py:5863: error: Incompatible types in assignment (expression has type "int", base class "Message" defined the type as "None")
autobahn/wamp/interfaces.py:62: error: Decorated property not supported
autobahn/wamp/interfaces.py:70: error: Decorated property not supported
autobahn/wamp/interfaces.py:108: error: Decorated property not supported
autobahn/wamp/interfaces.py:116: error: Decorated property not supported
autobahn/wamp/interfaces.py:124: error: Decorated property not supported
autobahn/wamp/interfaces.py:132: error: Decorated property not supported
autobahn/wamp/interfaces.py:173: error: Decorated property not supported
autobahn/wamp/interfaces.py:248: error: Decorated property not supported
autobahn/wamp/interfaces.py:322: error: Decorated property not supported
autobahn/wamp/interfaces.py:330: error: Decorated property not supported
autobahn/wamp/interfaces.py:340: error: Decorated property not supported
autobahn/twisted/util.py:42: error: Cannot assign to a type
autobahn/twisted/util.py:42: error: Incompatible types in assignment (expression has type "Type[None]", variable has type "Type[Win32PipeAddress]")
autobahn/twisted/util.py:49: error: Cannot assign to a type
autobahn/twisted/util.py:49: error: Incompatible types in assignment (expression has type "Type[None]", variable has type "Type[IPv6Address]")
autobahn/twisted/util.py:104: error: Attribute function "getPeer" with type "Callable[[], IAddress]" does not accept self argument
autobahn/twisted/util.py:111: error: On Python 3 formatting "b'abc'" with "{}" produces "b'abc'", not "abc"; use "{!r}" if this is desired behavior
autobahn/twisted/util.py:207: error: Missing return statement
autobahn/twisted/util.py:207: error: All conditional function variants must have identical signatures
autobahn/twisted/util.py:276: error: Module has no attribute "get_native_id"
autobahn/twisted/util.py:299: error: Argument "channel_id" to "TransportDetails" has incompatible type "Dict[str, Optional[bytes]]"; expected "Optional[Dict[str, bytes]]"
autobahn/wamp/serializer.py:306: error: "type" has no attribute "parse"
autobahn/wamp/serializer.py:371: error: Module "json" has no attribute "scanner"
autobahn/wamp/serializer.py:372: error: Module "json.decoder" has no attribute "scanstring"
autobahn/wamp/serializer.py:435: error: Incompatible redefinition (redefinition with type "Callable[[Any, Any], Any]", original type "Callable[[Any, bool, int, bool, bool, bool, int], str]")
autobahn/wamp/serializer.py:443: error: Cannot assign multiple modules to name "_json" without explicit "types.ModuleType" annotation
autobahn/wamp/serializer.py:554: error: Skipping analyzing "msgpack": module is installed, but missing library stubs or py.typed marker
autobahn/wamp/serializer.py:568: error: Skipping analyzing "umsgpack": module is installed, but missing library stubs or py.typed marker
autobahn/wamp/serializer.py:647: error: Incompatible types in assignment (expression has type "Type[MsgPackObjectSerializer]", target has type "Type[JsonObjectSerializer]")
autobahn/wamp/serializer.py:681: error: Incompatible types in assignment (expression has type "Type[MsgPackSerializer]", target has type "Type[JsonSerializer]")
autobahn/wamp/serializer.py:773: error: Incompatible types in assignment (expression has type "Type[CBORObjectSerializer]", target has type "Type[JsonObjectSerializer]")
autobahn/wamp/serializer.py:809: error: Incompatible types in assignment (expression has type "Type[CBORSerializer]", target has type "Type[JsonSerializer]")
autobahn/wamp/serializer.py:818: error: Skipping analyzing "ubjson": module is installed, but missing library stubs or py.typed marker
autobahn/wamp/serializer.py:888: error: Incompatible types in assignment (expression has type "Type[UBJSONObjectSerializer]", target has type "Type[JsonObjectSerializer]")
autobahn/wamp/serializer.py:924: error: Incompatible types in assignment (expression has type "Type[UBJSONSerializer]", target has type "Type[JsonSerializer]")
autobahn/wamp/serializer.py:992: error: Incompatible types in assignment (expression has type "Type[FlatBuffersObjectSerializer]", target has type "Type[JsonObjectSerializer]")
autobahn/wamp/serializer.py:1025: error: Incompatible types in assignment (expression has type "Type[FlatBuffersSerializer]", target has type "Type[JsonSerializer]")
autobahn/wamp/protocol.py:186: error: "Exception" has no attribute "_wampuris"
autobahn/wamp/protocol.py:187: error: "Exception" has no attribute "_wampuris"
autobahn/wamp/protocol.py:383: error: Need type annotation for "_publish_reqs" (hint: "_publish_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:384: error: Need type annotation for "_subscribe_reqs" (hint: "_subscribe_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:385: error: Need type annotation for "_unsubscribe_reqs" (hint: "_unsubscribe_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:386: error: Need type annotation for "_call_reqs" (hint: "_call_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:387: error: Need type annotation for "_register_reqs" (hint: "_register_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:388: error: Need type annotation for "_unregister_reqs" (hint: "_unregister_reqs: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:391: error: Need type annotation for "_subscriptions" (hint: "_subscriptions: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:394: error: Need type annotation for "_registrations" (hint: "_registrations: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:397: error: Need type annotation for "_invocations" (hint: "_invocations: Dict[<type>, <type>] = ...")
autobahn/wamp/protocol.py:422: error: "None" has no attribute "debug"
autobahn/wamp/protocol.py:660: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:681: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:691: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:722: error: Item "None" of "Optional[ITransport]" has no attribute "send"
autobahn/wamp/protocol.py:730: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:753: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:760: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:764: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:863: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:870: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:880: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:900: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:980: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:987: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:997: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:1012: error: Item "None" of "Optional[ITransport]" has no attribute "send"
autobahn/wamp/protocol.py:1055: error: Incompatible types in assignment (expression has type "None", variable has type "Callable[[VarArg(Any), KwArg(Any)], Any]")
autobahn/wamp/protocol.py:1142: error: All conditional function variants must have identical signatures
autobahn/wamp/protocol.py:1189: error: "None" has no attribute "debug"
autobahn/wamp/protocol.py:1228: error: "None" has no attribute "debug"
autobahn/wamp/protocol.py:1390: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:1408: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:1415: error: Item "None" of "Optional[ITransport]" has no attribute "send"
autobahn/wamp/protocol.py:1418: error: "None" has no attribute "warn"
autobahn/wamp/protocol.py:1420: error: "ITransport" has no attribute "is_closed"
autobahn/wamp/protocol.py:1664: error: "None" has no attribute "failure"
autobahn/wamp/protocol.py:1675: error: "Dict[str, Any]" has no attribute "message_attr"
autobahn/wamp/protocol.py:1689: error: "Dict[str, Any]" has no attribute "message_attr"
autobahn/wamp/protocol.py:1697: error: "Dict[str, Any]" has no attribute "correlation_id"
autobahn/wamp/protocol.py:1698: error: "Dict[str, Any]" has no attribute "correlation_id"
autobahn/wamp/protocol.py:1699: error: "Dict[str, Any]" has no attribute "correlation_uri"
autobahn/wamp/protocol.py:1700: error: "Dict[str, Any]" has no attribute "correlation_uri"
autobahn/wamp/protocol.py:1701: error: "Dict[str, Any]" has no attribute "correlation_is_anchor"
autobahn/wamp/protocol.py:1702: error: "Dict[str, Any]" has no attribute "correlation_is_anchor"
autobahn/wamp/protocol.py:1703: error: "Dict[str, Any]" has no attribute "correlation_is_last"
autobahn/wamp/protocol.py:1704: error: "Dict[str, Any]" has no attribute "correlation_is_last"
autobahn/wamp/protocol.py:1995: error: Access to generic instance variables via class is ambiguous
autobahn/wamp/cryptosign.py:392: error: Argument 1 to "len" has incompatible type "Optional[bytes]"; expected "Sized"
autobahn/wamp/cryptosign.py:393: error: Argument 1 to "len" has incompatible type "Optional[bytes]"; expected "Sized"
autobahn/wamp/cryptosign.py:501: error: Item "VerifyKey" of "Union[SigningKey, VerifyKey]" has no attribute "sign"
autobahn/wamp/cryptosign.py:519: error: "ISession" has no attribute "_transport"; maybe "transport"?
autobahn/wamp/cryptosign.py:520: error: "ISession" has no attribute "_transport"; maybe "transport"?
autobahn/wamp/cryptosign.py:614: error: Argument 1 to "SigningKey" has incompatible type "str"; expected "bytes"
autobahn/wamp/cryptosign.py:619: error: Incompatible types in assignment (expression has type "VerifyKey", variable has type "SigningKey")
autobahn/wamp/cryptosign.py:619: error: Argument 1 to "VerifyKey" has incompatible type "str"; expected "bytes"
autobahn/wamp/cryptosign.py:952: error: Incompatible types in assignment (expression has type "str", target has type "int")
autobahn/wamp/cryptosign.py:954: error: Incompatible types in assignment (expression has type "str", target has type "int")
autobahn/wamp/cryptosign.py:956: error: Incompatible types in assignment (expression has type "str", target has type "int")
autobahn/wamp/cryptosign.py:960: error: Incompatible types in assignment (expression has type "Dict[str, int]", target has type "str")
autobahn/xbr/_secmod.py:64: error: Incompatible types in assignment (expression has type "None", variable has type "LocalAccount")
autobahn/xbr/_secmod.py:240: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object"
autobahn/xbr/_secmod.py:240: note: (Skipping most remaining errors due to unresolved imports or missing stubs; fix these first)
Found 191 errors in 36 files (checked 202 source files)
make: *** [Makefile:132: mypy] Fehler 1
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment