-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix NewType
#835
Draft
KotlinIsland
wants to merge
1
commit into
master
Choose a base branch
from
fix-newtype
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
fix NewType
#835
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diff from mypy_primer, showing the effect of this PR on open source code: websockets (https://github.com/aaugustin/websockets)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/typeshed/stdlib/argparse.pyi:50: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.9.0+dev.a252e2a25e0fb702e229ed34cf9bc4ab1cd8a984
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 107, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 216, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 199, in build
+ result = _build(
+ File "/build.py", line 277, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3090, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3490, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3585, in process_stale_scc
+ mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+ File "/semanal_main.py", line 93, in semantic_analysis_for_scc
+ process_top_levels(graph, scc, patches)
+ File "/semanal_main.py", line 220, in process_top_levels
+ deferred, incomplete, progress = semantic_analyze_target(
+ File "/semanal_main.py", line 351, in semantic_analyze_target
+ analyzer.refresh_partial(
+ File "/semanal.py", line 630, in refresh_partial
+ self.refresh_top_level(node)
+ File "/semanal.py", line 647, in refresh_top_level
+ self.accept(d)
+ File "/semanal.py", line 7301, in accept
+ node.accept(self)
+ File "/nodes.py", line 1357, in accept
+ return visitor.visit_assignment_stmt(self)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 3288, in visit_assignment_stmt
+ elif self.newtype_analyzer.process_newtype_declaration(s):
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal_newtype.py", line 144, in process_newtype_declaration
+ fallback=self.api.named_type("typing.Callable"),
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 6623, in named_type
+ assert isinstance(node, TypeInfo)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AssertionError:
- src/websockets/version.py: note: In function "get_version":
- src/websockets/version.py:75:25: error: Item "None" of "str | None" has no attribute "replace" [union-attr]
- src/websockets/version.py:75:25: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-union-attr for more info
- src/websockets/version.py:76:31: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- src/websockets/version.py:76:31: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-helpful-string for more info
- src/websockets/version.py: note: In function "get_commit":
- src/websockets/version.py:90:16: error: Incompatible return value type (got "str | None", expected "str") [return-value]
- src/websockets/streams.py: note: In member "read_line" of class "StreamReader":
- src/websockets/streams.py:52:16: error: Incompatible return value type (got "bytearray", expected "bytes") [return-value]
- src/websockets/streams.py: note: In member "read_exact" of class "StreamReader":
- src/websockets/streams.py:75:16: error: Incompatible return value type (got "bytearray", expected "bytes") [return-value]
- src/websockets/streams.py: note: In member "read_to_eof" of class "StreamReader":
- src/websockets/streams.py:97:16: error: Incompatible return value type (got "bytearray", expected "bytes") [return-value]
- src/websockets/datastructures.py: note: In member "__str__" of class "MultipleValuesError":
- src/websockets/datastructures.py:16:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/datastructures.py:16:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- src/websockets/datastructures.py:18:16: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/datastructures.py:18:16: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info
- src/websockets/datastructures.py:19:25: error: Expression type contains "Any" (has type "(Any,)") [no-any-expr]
- src/websockets/datastructures.py:19:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/datastructures.py: note: In member "__str__" of class "Headers":
- src/websockets/datastructures.py:69:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/datastructures.py: note: In member "__repr__" of class "Headers":
- src/websockets/datastructures.py:72:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/datastructures.py: note: In member "__contains__" of class "Headers":
- src/websockets/datastructures.py:87:5: error: Method "__contains__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- src/websockets/datastructures.py: note: In member "__iter__" of class "Headers":
- src/websockets/datastructures.py:90:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- src/websockets/datastructures.py: note: In member "__len__" of class "Headers":
- src/websockets/datastructures.py:93:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- src/websockets/datastructures.py: note: In member "__getitem__" of class "Headers":
- src/websockets/datastructures.py:98:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- src/websockets/datastructures.py: note: In member "__setitem__" of class "Headers":
- src/websockets/datastructures.py:105:5: error: Method "__setitem__" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- src/websockets/datastructures.py: note: In member "__delitem__" of class "Headers":
- src/websockets/datastructures.py:109:5: error: Method "__delitem__" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- src/websockets/datastructures.py: note: In member "__eq__" of class "Headers":
- src/websockets/datastructures.py:115:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/datastructures.py:115:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-explicit for more info
- src/websockets/datastructures.py:115:5: error: Method "__eq__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- src/websockets/datastructures.py:116:27: error: Expression has type "Any" [no-any-expr]
- src/websockets/datastructures.py: note: In member "clear" of class "Headers":
- src/websockets/datastructures.py:120:5: error: Method "clear" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- src/websockets/datastructures.py: note: In member "update" of class "Headers":
- src/websockets/datastructures.py:128:5: error: Method "update" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- src/websockets/imports.py: note: In function "import_name":
- src/websockets/imports.py:11:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/imports.py:28:41: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py: note: In function "lazy_import":
- src/websockets/imports.py:32:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/imports.py:61:25: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py:69:15: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py:69:15: error: Expression has type "Any" [no-any-expr]
- src/websockets/imports.py:71:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/imports.py:78:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/imports.py:78:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py:87:19: error: Expression has type "Any" [no-any-expr]
- src/websockets/imports.py:91:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/imports.py:91:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py:93:39: error: Expression has type "Any" [no-any-expr]
- src/websockets/imports.py:95:5: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/imports.py:95:32: error: Expression type contains "Any" (has type "def (str) -> Any") [no-any-expr]
- src/websockets/imports.py:100:5: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/typing.py:35:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/async_timeout.py: note: In member "_do_enter" of class "Timeout":
- src/websockets/asyncio/async_timeout.py:258:48: error: Expression has type "Any" [no-any-expr]
- src/websockets/exceptions.py: note: In member "__str__" of class "ConnectionClosed":
- src/websockets/exceptions.py:98:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "InvalidURI":
- src/websockets/exceptions.py:168:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "InvalidStatus":
- src/websockets/exceptions.py:205:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "InvalidHeader":
- src/websockets/exceptions.py:222:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "DuplicateParameter":
- src/websockets/exceptions.py:285:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "InvalidParameterName":
- src/websockets/exceptions.py:298:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "InvalidParameterValue":
- src/websockets/exceptions.py:312:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/exceptions.py: note: In member "__str__" of class "PayloadTooBig":
- src/websockets/exceptions.py:368:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/frames.py: note: In member "__str__" of class "Frame":
- src/websockets/frames.py:151:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/frames.py:173:36: error: Argument 1 to "parse" of "Close" has incompatible type "bytes | bytearray | memoryview[int]"; expected "bytes" [arg-type]
- src/websockets/frames.py: note: In member "parse" of class "Frame":
- src/websockets/frames.py:231:24: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/frames.py:231:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:234:23: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:235:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:236:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:237:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:240:29: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:244:21: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:247:18: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:248:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:250:25: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/frames.py:250:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:251:14: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:253:25: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/frames.py:253:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:254:12: error: Expression type contains "Any" (has type "False | Any") [no-any-expr]
- src/websockets/frames.py:254:37: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:255:33: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:260:38: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py: note: At top level:
- src/websockets/frames.py:262:37: error: Name "mask_bytes" may be undefined [possibly-undefined]
- src/websockets/frames.py:262:37: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-possibly-undefined for more info
- src/websockets/frames.py: note: In member "serialize" of class "Frame":
- src/websockets/frames.py:327:31: error: Argument 1 to "apply_mask" has incompatible type "bytes | bytearray | memoryview[int]"; expected "bytes" [arg-type]
- src/websockets/frames.py: note: At top level:
- src/websockets/frames.py:327:42: error: Name "mask_bytes" may be undefined [possibly-undefined]
- src/websockets/frames.py: note: In member "serialize" of class "Frame":
- src/websockets/frames.py:329:20: error: Incompatible types in assignment (expression has type "bytes | bytearray | memoryview[int]", variable has type "bytes") [assignment]
- src/websockets/frames.py: note: In member "__str__" of class "Close":
- src/websockets/frames.py:366:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/frames.py: note: In member "parse" of class "Close":
- src/websockets/frames.py:398:23: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/frames.py:398:23: error: Expression has type "Any" [no-any-expr]
- src/websockets/frames.py:400:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/protocol.py: note: In member "recv_frame" of class "Protocol":
- src/websockets/protocol.py:694:43: error: Argument 1 to "parse" of "Close" has incompatible type "bytes | bytearray | memoryview[int]"; expected "bytes" [arg-type]
- src/websockets/headers.py: note: In function "validate_subprotocols":
- src/websockets/headers.py:470:8: error: Condition is always false [redundant-expr]
- src/websockets/headers.py:470:8: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- src/websockets/extensions/permessage_deflate.py: note: In member "__init__" of class "PerMessageDeflate":
- src/websockets/extensions/permessage_deflate.py:41:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/extensions/permessage_deflate.py:53:12: error: Expression type contains "Any" (has type "dict[Any, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:60:31: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:66:34: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:74:19: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In member "__repr__" of class "PerMessageDeflate":
- src/websockets/extensions/permessage_deflate.py:83:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/extensions/permessage_deflate.py: note: In member "decode" of class "PerMessageDeflate":
- src/websockets/extensions/permessage_deflate.py:92:5: error: Method "decode" is not using @override but is overriding a method in class "websockets.extensions.base.Extension" [explicit-override]
- src/websockets/extensions/permessage_deflate.py:137:20: error: Incompatible types in assignment (expression has type "bytes | bytearray | memoryview[int]", variable has type "bytes") [assignment]
- src/websockets/extensions/permessage_deflate.py: note: In member "encode" of class "PerMessageDeflate":
- src/websockets/extensions/permessage_deflate.py:164:5: error: Method "encode" is not using @override but is overriding a method in class "websockets.extensions.base.Extension" [explicit-override]
- src/websockets/extensions/permessage_deflate.py:181:23: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:194:24: error: Incompatible types in assignment (expression has type "memoryview[int]", variable has type "bytes") [assignment]
- src/websockets/extensions/permessage_deflate.py: note: In function "_extract_parameters":
- src/websockets/extensions/permessage_deflate.py:268:16: error: Condition is always false [redundant-expr]
- src/websockets/extensions/permessage_deflate.py:276:16: error: Condition is always false [redundant-expr]
- src/websockets/extensions/permessage_deflate.py: note: In member "__init__" of class "ClientPerMessageDeflateFactory":
- src/websockets/extensions/permessage_deflate.py:322:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/extensions/permessage_deflate.py:342:12: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:342:57: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:352:34: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In member "get_request_params" of class "ClientPerMessageDeflateFactory":
- src/websockets/extensions/permessage_deflate.py:354:5: error: Method "get_request_params" is not using @override but is overriding a method in class "websockets.extensions.base.ClientExtensionFactory" [explicit-override]
- src/websockets/extensions/permessage_deflate.py: note: In member "process_response_params" of class "ClientPerMessageDeflateFactory":
- src/websockets/extensions/permessage_deflate.py:366:5: error: Method "process_response_params" is not using @override but is overriding a method in class "websockets.extensions.base.ClientExtensionFactory" [explicit-override]
- src/websockets/extensions/permessage_deflate.py:468:13: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In function "enable_client_permessage_deflate":
- src/websockets/extensions/permessage_deflate.py:490:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In member "__init__" of class "ServerPerMessageDeflateFactory":
- src/websockets/extensions/permessage_deflate.py:525:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/extensions/permessage_deflate.py:542:12: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:542:57: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py:557:34: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In member "process_request_params" of class "ServerPerMessageDeflateFactory":
- src/websockets/extensions/permessage_deflate.py:560:5: error: Method "process_request_params" is not using @override but is overriding a method in class "websockets.extensions.base.ServerExtensionFactory" [explicit-override]
- src/websockets/extensions/permessage_deflate.py:669:17: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- src/websockets/extensions/permessage_deflate.py: note: In function "enable_server_permessage_deflate":
- src/websockets/extensions/permessage_deflate.py:694:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/messages.py: note: In member "__init__" of class "Assembler":
- src/websockets/asyncio/messages.py:85:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/messages.py:109:22: error: Expression type contains "Any" (has type "() -> Any") [no-any-expr]
- src/websockets/asyncio/messages.py:110:23: error: Expression type contains "Any" (has type "() -> Any") [no-any-expr]
- src/websockets/asyncio/messages.py: note: In member "get_iter" of class "Assembler":
- src/websockets/asyncio/messages.py:228:13: error: Incompatible types in "yield" (actual type "bytes | bytearray | memoryview[int]", expected type "str | bytes") [misc]
- src/websockets/asyncio/messages.py: note: At top level:
- src/websockets/asyncio/messages.py:240:23: error: Name "decoder" may be undefined [possibly-undefined]
- src/websockets/asyncio/messages.py: note: In member "get_iter" of class "Assembler":
- src/websockets/asyncio/messages.py:242:17: error: Incompatible types in "yield" (actual type "bytes | bytearray | memoryview[int]", expected type "str | bytes") [misc]
- src/websockets/server.py: note: In member "__init__" of class "ServerProtocol":
- src/websockets/server.py:105:17: error: "(ServerProtocol, Sequence[Subprotocol]) -> Subprotocol | None" has no attribute "__get__" [attr-defined]
- src/websockets/server.py: note: In member "parse" of class "ServerProtocol":
- src/websockets/server.py:549:5: error: Method "parse" is not using @override but is overriding a method in class "websockets.protocol.Protocol" [explicit-override]
- src/websockets/server.py: note: At top level:
- src/websockets/server.py:566:56: error: Name "request" may be undefined [possibly-undefined]
- src/websockets/server.py:570:32: error: Name "request" may be undefined [possibly-undefined]
- src/websockets/server.py: note: In member "__init__" of class "ServerConnection":
- src/websockets/server.py:576:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/server.py:581:27: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/server.py:581:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/client.py: note: In member "parse" of class "ClientProtocol":
- src/websockets/client.py:313:5: error: Method "parse" is not using @override but is overriding a method in class "websockets.protocol.Protocol" [explicit-override]
- src/websockets/client.py: note: At top level:
- src/websockets/client.py:332:32: error: Name "response" may be undefined [possibly-undefined]
- src/websockets/client.py:340:39: error: Name "response" may be undefined [possibly-undefined]
- src/websockets/client.py:342:17: error: Name "response" may be undefined [possibly-undefined]
- src/websockets/client.py: note: In member "__init__" of class "ClientConnection":
- src/websockets/client.py:358:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/client.py:363:27: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/client.py:363:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/connection.py: note: In member "local_address" of class "Connection":
- src/websockets/asyncio/connection.py:140:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/connection.py: note: In class "Connection":
- src/websockets/asyncio/connection.py:140:5: error: Type of decorated function contains type "Any" ("def (self: Connection) -> Any") [no-any-decorated]
- src/websockets/asyncio/connection.py:140:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-decorated for more info
- src/websockets/asyncio/connection.py: note: In member "local_address" of class "Connection":
- src/websockets/asyncio/connection.py:140:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/connection.py:150:16: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/connection.py: note: In member "remote_address" of class "Connection":
- src/websockets/asyncio/connection.py:153:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/connection.py: note: In class "Connection":
- src/websockets/asyncio/connection.py:153:5: error: Type of decorated function contains type "Any" ("def (self: Connection) -> Any") [no-any-decorated]
- src/websockets/asyncio/connection.py: note: In member "remote_address" of class "Connection":
- src/websockets/asyncio/connection.py:153:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/connection.py:163:16: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/connection.py: note: In member "send" of class "Connection":
- src/websockets/asyncio/connection.py:467:45: error: Argument 1 to "send_text" of "Protocol" has incompatible type "bytes | Iterable[str | bytes] & bytearray | memoryview[Any]"; expected "bytes" [arg-type]
- src/websockets/asyncio/connection.py:469:47: error: Argument 1 to "send_binary" of "Protocol" has incompatible type "bytes | Iterable[str | bytes] & bytearray | memoryview[Any]"; expected "bytes" [arg-type]
- src/websockets/asyncio/connection.py: note: At top level:
- src/websockets/asyncio/connection.py:508:51: error: Name "encode" may be undefined [possibly-undefined]
- src/websockets/asyncio/connection.py: note: In member "send" of class "Connection":
- src/websockets/asyncio/connection.py:537:14: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/connection.py:556:22: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/connection.py: note: At top level:
- src/websockets/asyncio/connection.py:569:51: error: Name "encode" may be undefined [possibly-undefined]
- src/websockets/asyncio/connection.py: note: In member "ping" of class "Connection":
- src/websockets/asyncio/connection.py:674:14: error: Condition is always false [redundant-expr]
- src/websockets/asyncio/connection.py:686:27: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py:690:39: error: Expression type contains "Any" (has type "(Future[Any], float)") [no-any-expr]
- src/websockets/asyncio/connection.py:690:40: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py:692:20: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py: note: In member "pong" of class "Connection":
- src/websockets/asyncio/connection.py:711:14: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/connection.py: note: In member "connection_made" of class "Connection":
- src/websockets/asyncio/connection.py:983:5: error: Method "connection_made" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In member "connection_lost" of class "Connection":
- src/websockets/asyncio/connection.py:993:5: error: Method "connection_lost" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In member "pause_writing" of class "Connection":
- src/websockets/asyncio/connection.py:1025:5: error: Method "pause_writing" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In member "resume_writing" of class "Connection":
- src/websockets/asyncio/connection.py:1030:5: error: Method "resume_writing" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In member "drain" of class "Connection":
- src/websockets/asyncio/connection.py:1049:22: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py:1050:39: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py:1052:23: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py:1054:43: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/asyncio/connection.py: note: In member "data_received" of class "Connection":
- src/websockets/asyncio/connection.py:1058:5: error: Method "data_received" is not using @override but is overriding a method in class "asyncio.protocols.Protocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In member "eof_received" of class "Connection":
- src/websockets/asyncio/connection.py:1084:5: error: Method "eof_received" is not using @override but is overriding a method in class "asyncio.protocols.Protocol" [explicit-override]
- src/websockets/asyncio/connection.py: note: In function "broadcast":
- src/websockets/asyncio/connection.py:1170:10: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/connection.py: note: At top level:
- src/websockets/asyncio/connection.py:1189:17: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/asyncio/connection.py: note: In function "broadcast":
- src/websockets/asyncio/connection.py:1199:13: error: "object" not callable [operator]
- src/websockets/asyncio/connection.py:1199:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-operator for more info
- src/websockets/asyncio/connection.py: note: At top level:
- src/websockets/asyncio/connection.py:1205:17: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/asyncio/connection.py:1216:29: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/asyncio/server.py: note: In member "process_event" of class "ServerConnection":
- src/websockets/asyncio/server.py:206:5: error: Method "process_event" is not using @override but is overriding a method in class "websockets.asyncio.connection.Connection" [explicit-override]
- src/websockets/asyncio/server.py: note: In member "connection_made" of class "ServerConnection":
- src/websockets/asyncio/server.py:220:5: error: Method "connection_made" is not using @override but is overriding a method in class "websockets.asyncio.connection.Connection" [explicit-override]
- src/websockets/asyncio/server.py: note: In member "wrap" of class "Server":
- src/websockets/asyncio/server.py:331:36: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/server.py: note: In member "__init__" of class "serve":
- src/websockets/asyncio/server.py:677:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/server.py:746:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:746:12: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/server.py:747:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:749:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:798:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:798:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/server.py:799:69: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:802:76: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py:802:76: note: Error code "no-any-expr" not covered by "type: ignore" comment
- src/websockets/asyncio/server.py: note: In member "__await__" of class "serve":
- src/websockets/asyncio/server.py:820:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/server.py:822:16: error: Expression type contains "Any" (has type "Generator[Any, Any, Server]") [no-any-expr]
- src/websockets/asyncio/server.py: note: In class "serve":
- src/websockets/asyncio/server.py:831:16: error: Expression type contains "Any" (has type "def (self: serve) -> Generator[Any, None, Server]") [no-any-expr]
- src/websockets/asyncio/server.py: note: In function "unix_serve":
- src/websockets/asyncio/server.py:834:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/server.py:853:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/server.py: note: In function "is_credentials":
- src/websockets/asyncio/server.py:856:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/server.py:858:30: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/server.py:862:27: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/server.py:862:57: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/server.py: note: In function "basic_auth":
- src/websockets/asyncio/server.py:911:14: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/server.py:914:65: error: The type "typing.Iterable[(str, str)]" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- src/websockets/asyncio/client.py: note: In member "process_event" of class "ClientConnection":
- src/websockets/asyncio/client.py:106:5: error: Method "process_event" is not using @override but is overriding a method in class "websockets.asyncio.connection.Connection" [explicit-override]
- src/websockets/asyncio/client.py: note: In member "__init__" of class "connect":
- src/websockets/asyncio/client.py:270:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/client.py:343:34: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py: note: In member "create_connection" of class "connect":
- src/websockets/asyncio/client.py:350:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:356:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:357:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:358:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:358:16: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:361:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:361:16: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:364:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:364:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/client.py:365:74: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:367:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:367:16: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:368:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:369:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:370:69: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py: note: In member "process_redirect" of class "connect":
- src/websockets/asyncio/client.py:400:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:400:12: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:416:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:416:16: error: Expression has type "Any" [no-any-expr]
- src/websockets/asyncio/client.py:424:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:424:17: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:425:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:425:20: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py: note: In member "__await__" of class "connect":
- src/websockets/asyncio/client.py:436:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/client.py:438:16: error: Expression type contains "Any" (has type "Generator[Any, Any, ClientConnection]") [no-any-expr]
- src/websockets/asyncio/client.py: note: In class "connect":
- src/websockets/asyncio/client.py:482:16: error: Expression type contains "Any" (has type "def (self: connect) -> Generator[Any, None, ClientConnection]") [no-any-expr]
- src/websockets/asyncio/client.py: note: In member "__aiter__" of class "connect":
- src/websockets/asyncio/client.py:501:15: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/client.py:524:20: error: Condition is always true [redundant-expr]
- src/websockets/asyncio/client.py: note: In function "unix_connect":
- src/websockets/asyncio/client.py:541:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/asyncio/client.py:563:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/asyncio/client.py:563:12: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/asyncio/client.py:567:53: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/messages.py: note: In member "__init__" of class "Assembler":
- src/websockets/sync/messages.py:34:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/messages.py:62:22: error: Expression type contains "Any" (has type "() -> Any") [no-any-expr]
- src/websockets/sync/messages.py:63:23: error: Expression type contains "Any" (has type "() -> Any") [no-any-expr]
- src/websockets/sync/messages.py: note: In member "get_next_frame" of class "Assembler":
- src/websockets/sync/messages.py:84:51: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- src/websockets/sync/messages.py:84:51: error: The type "None" doesn't support format-specifiers [str-format]
- src/websockets/sync/messages.py:84:51: note: Maybe you want to add '!s' to the conversion
- src/websockets/sync/messages.py:84:51: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-str-format for more info
- src/websockets/sync/messages.py: note: In member "get_iter" of class "Assembler":
- src/websockets/sync/messages.py:224:13: error: Incompatible types in "yield" (actual type "bytes | bytearray | memoryview[int]", expected type "str | bytes") [misc]
- src/websockets/sync/messages.py: note: At top level:
- src/websockets/sync/messages.py:233:23: error: Name "decoder" may be undefined [possibly-undefined]
- src/websockets/sync/messages.py: note: In member "get_iter" of class "Assembler":
- src/websockets/sync/messages.py:235:17: error: Incompatible types in "yield" (actual type "bytes | bytearray | memoryview[int]", expected type "str | bytes") [misc]
- src/websockets/legacy/framing.py: note: In member "__str__" of class "Frame":
- src/websockets/legacy/framing.py:38:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/legacy/framing.py: note: In member "read" of class "Frame":
- src/websockets/legacy/framing.py:72:24: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/legacy/framing.py:72:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:75:23: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:76:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:77:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:78:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:81:36: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:85:21: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:88:18: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:89:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:91:25: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/legacy/framing.py:91:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:92:14: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:94:25: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/legacy/framing.py:94:25: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:95:12: error: Expression type contains "Any" (has type "False | Any") [no-any-expr]
- src/websockets/legacy/framing.py:95:37: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:96:33: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py:101:29: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/framing.py: note: At top level:
- src/websockets/legacy/framing.py:103:37: error: Name "mask_bits" may be undefined [possibly-undefined]
- src/websockets/legacy/framing.py: note: In member "read" of class "Frame":
- src/websockets/legacy/framing.py:117:13: error: Argument 3 to "Frame" has incompatible type "bytes | bytearray | memoryview[int]"; expected "bytes" [arg-type]
- src/websockets/legacy/framing.py: note: In member "write" of class "Frame":
- src/websockets/legacy/framing.py:123:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/framing.py: note: In function "prepare_data":
- src/websockets/legacy/framing.py:168:10: error: Condition is always true [redundant-expr]
- src/websockets/legacy/framing.py: note: In function "prepare_ctrl":
- src/websockets/legacy/framing.py:191:10: error: Condition is always true [redundant-expr]
- src/websockets/legacy/exceptions.py: note: In member "__str__" of class "InvalidStatusCode":
- src/websockets/legacy/exceptions.py:23:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/legacy/exceptions.py: note: In member "__str__" of class "AbortHandshake":
- src/websockets/legacy/exceptions.py:53:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/legacy/exceptions.py: note: In member "__str__" of class "RedirectHandshake":
- src/websockets/legacy/exceptions.py:72:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/websockets/sync/connection.py: note: In member "local_address" of class "Connection":
- src/websockets/sync/connection.py:118:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/connection.py: note: In class "Connection":
- src/websockets/sync/connection.py:118:5: error: Type of decorated function contains type "Any" ("def (self: Connection) -> Any") [no-any-decorated]
- src/websockets/sync/connection.py: note: In member "remote_address" of class "Connection":
- src/websockets/sync/connection.py:131:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/connection.py: note: In class "Connection":
- src/websockets/sync/connection.py:131:5: error: Type of decorated function contains type "Any" ("def (self: Connection) -> Any") [no-any-decorated]
- src/websockets/sync/connection.py: note: In member "send" of class "Connection":
- src/websockets/sync/connection.py:431:45: error: Argument 1 to "send_text" of "Protocol" has incompatible type "bytes | Iterable[str | bytes] & bytearray | memoryview[Any]"; expected "bytes" [arg-type]
- src/websockets/sync/connection.py:433:47: error: Argument 1 to "send_binary" of "Protocol" has incompatible type "bytes | Iterable[str | bytes] & bytearray | memoryview[Any]"; expected "bytes" [arg-type]
- src/websockets/sync/connection.py:442:14: error: Condition is always true [redundant-expr]
- src/websockets/sync/connection.py: note: In member "ping" of class "Connection":
- src/websockets/sync/connection.py:580:14: error: Condition is always false [redundant-expr]
- src/websockets/sync/connection.py: note: In member "pong" of class "Connection":
- src/websockets/sync/connection.py:614:14: error: Condition is always true [redundant-expr]
- src/websockets/sync/connection.py: note: At top level:
- src/websockets/sync/connection.py:692:20: error: Name "data" may be undefined [possibly-undefined]
- src/websockets/legacy/protocol.py: note: In member "_drain_helper" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:311:18: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/legacy/protocol.py:313:15: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/legacy/protocol.py: note: In member "_drain" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:317:12: error: Condition is always true [redundant-expr]
- src/websockets/legacy/protocol.py:319:16: error: Condition is always true [redundant-expr]
- src/websockets/legacy/protocol.py:321:9: error: Statement is unreachable [unreachable]
- src/websockets/legacy/protocol.py:321:9: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-unreachable for more info
- src/websockets/legacy/protocol.py: note: In member "local_address" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:371:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/protocol.py: note: In class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:371:5: error: Type of decorated function contains type "Any" ("def (self: WebSocketCommonProtocol) -> Any") [no-any-decorated]
- src/websockets/legacy/protocol.py: note: In member "local_address" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:371:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/protocol.py:388:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/protocol.py: note: In member "remote_address" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:391:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/protocol.py: note: In class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:391:5: error: Type of decorated function contains type "Any" ("def (self: WebSocketCommonProtocol) -> Any") [no-any-decorated]
- src/websockets/legacy/protocol.py: note: In member "remote_address" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:391:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/protocol.py:408:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/protocol.py: note: At top level:
- src/websockets/legacy/protocol.py:550: error: "type: ignore" comment without error code (consider "type: ignore[return-value]" instead) [ignore-without-code]
- src/websockets/legacy/protocol.py: note: In member "send" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:631:41: error: Argument 1 to "prepare_data" has incompatible type "str | bytes | Iterable[str | bytes] & bytearray | memoryview[Any]"; expected "str | bytes" [arg-type]
- src/websockets/legacy/protocol.py:679:14: error: Condition is always true [redundant-expr]
- src/websockets/legacy/protocol.py: note: In member "ping" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:843:23: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/legacy/protocol.py:846:28: error: Expression type contains "Any" (has type "(Future[Any], float)") [no-any-expr]
- src/websockets/legacy/protocol.py:846:29: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/legacy/protocol.py:850:31: error: Expression type contains "Any" (has type "Future[Any]") [no-any-expr]
- src/websockets/legacy/protocol.py: note: In member "read_message" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1077:9: error: Statement is unreachable [unreachable]
- src/websockets/legacy/protocol.py: note: In member "connection_made" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1447:5: error: Method "connection_made" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/legacy/protocol.py: note: In member "connection_lost" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1468:5: error: Method "connection_lost" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/legacy/protocol.py:1483:12: error: Condition is always true [redundant-expr]
- src/websockets/legacy/protocol.py:1485:16: error: Condition is always true [redundant-expr]
- src/websockets/legacy/protocol.py: note: In member "pause_writing" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1506:5: error: Method "pause_writing" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/legacy/protocol.py: note: In member "resume_writing" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1510:5: error: Method "resume_writing" is not using @override but is overriding a method in class "asyncio.protocols.BaseProtocol" [explicit-override]
- src/websockets/legacy/protocol.py: note: In member "data_received" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1520:5: error: Method "data_received" is not using @override but is overriding a method in class "asyncio.protocols.Protocol" [explicit-override]
- src/websockets/legacy/protocol.py: note: In member "eof_received" of class "WebSocketCommonProtocol":
- src/websockets/legacy/protocol.py:1523:5: error: Method "eof_received" is not using @override but is overriding a method in class "asyncio.protocols.Protocol" [explicit-override]
- src/websockets/legacy/protocol.py: note: In function "broadcast":
- src/websockets/legacy/protocol.py:1595:8: error: Condition is always false [redundant-expr]
- src/websockets/legacy/protocol.py: note: At top level:
- src/websockets/legacy/protocol.py:1612:17: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/legacy/protocol.py:1625:17: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/legacy/protocol.py:1636:29: error: Name "exceptions" may be undefined [possibly-undefined]
- src/websockets/sync/server.py: note: In member "process_event" of class "ServerConnection":
- src/websockets/sync/server.py:184:5: error: Method "process_event" is not using @override but is overriding a method in class "websockets.sync.connection.Connection" [explicit-override]
- src/websockets/sync/server.py: note: In member "recv_events" of class "ServerConnection":
- src/websockets/sync/server.py:198:5: error: Method "recv_events" is not using @override but is overriding a method in class "websockets.sync.connection.Connection" [explicit-override]
- src/websockets/sync/server.py: note: In member "__init__" of class "Server":
- src/websockets/sync/server.py:229:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py:236:24: error: Expression type contains "Any" (has type "(socket, Any) -> None") [no-any-expr]
- src/websockets/sync/server.py: note: In member "serve_forever" of class "Server":
- src/websockets/sync/server.py:278:46: error: Expression type contains "Any" (has type "(socket, Any) -> None") [no-any-expr]
- src/websockets/sync/server.py: note: In function "__getattr__":
- src/websockets/sync/server.py:309:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py: note: In function "serve":
- src/websockets/sync/server.py:319:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py:457:41: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:458:15: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:478:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:479:24: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:485:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:486:49: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:488:57: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py:505:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py:603:25: error: Expression type contains "Any" (has type "def (sock: socket, addr: Any) -> None") [no-any-expr]
- src/websockets/sync/server.py: note: In function "unix_serve":
- src/websockets/sync/server.py:606:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py:626:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/server.py: note: In function "is_credentials":
- src/websockets/sync/server.py:629:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/server.py:631:30: error: Expression has type "Any" [no-any-expr]
- src/websockets/sync/server.py:635:27: error: Expression has type "Any" [no-any-expr]
- src/websockets/sync/server.py:635:57: error: Expression has type "Any" [no-any-expr]
- src/websockets/sync/server.py: note: In function "basic_auth":
- src/websockets/sync/server.py:684:14: error: Condition is always true [redundant-expr]
- src/websockets/sync/server.py:687:65: error: The type "typing.Iterable[(str, str)]" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- src/websockets/sync/client.py: note: In member "process_event" of class "ClientConnection":
- src/websockets/sync/client.py:97:5: error: Method "process_event" is not using @override but is overriding a method in class "websockets.sync.connection.Connection" [explicit-override]
- src/websockets/sync/client.py: note: In member "recv_events" of class "ClientConnection":
- src/websockets/sync/client.py:111:5: error: Method "recv_events" is not using @override but is overriding a method in class "websockets.sync.connection.Connection" [explicit-override]
- src/websockets/sync/client.py: note: In function "connect":
- src/websockets/sync/client.py:123:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/client.py:216:41: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:217:15: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:228:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:229:24: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:263:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:264:77: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py: note: In function "unix_connect":
- src/websockets/sync/client.py:321:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/sync/client.py:344:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:344:12: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/sync/client.py:344:42: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/sync/client.py:344:42: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/sync/client.py:348:53: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py: note: In member "__init__" of class "WebSocketServerProtocol":
- src/websockets/legacy/server.py:92:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:118:43: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:126:27: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:126:48: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any] | (WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py: note: In member "connection_made" of class "WebSocketServerProtocol":
- src/websockets/legacy/server.py:137:5: error: Method "connection_made" is not using @override but is overriding a method in class "websockets.legacy.protocol.WebSocketCommonProtocol" [explicit-override]
- src/websockets/legacy/server.py: note: In member "handler" of class "WebSocketServerProtocol":
- src/websockets/legacy/server.py:236:23: error: Expression type contains "Any" (has type "Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py: note: In member "process_request" of class "WebSocketServerProtocol":
- src/websockets/legacy/server.py:362:16: error: Condition is always true [redundant-expr]
- src/websockets/legacy/server.py:366:17: error: Statement is unreachable [unreachable]
- src/websockets/legacy/server.py: note: In member "handshake" of class "WebSocketServerProtocol":
- src/websockets/legacy/server.py:587:12: error: Condition is always true [redundant-expr]
- src/websockets/legacy/server.py:591:13: error: Statement is unreachable [unreachable]
- src/websockets/legacy/server.py: note: In member "wrap" of class "WebSocketServer":
- src/websockets/legacy/server.py:699:36: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/server.py: note: In member "__init__" of class "Serve":
- src/websockets/legacy/server.py:976:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1011:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1021:55: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1027:12: error: Expression type contains "Any" (has type "(...) -> WebSocketServerProtocol | None") [no-any-expr]
- src/websockets/legacy/server.py:1031:29: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1034:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1043:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1043:18: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/legacy/server.py:1055:27: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1055:27: error: Expression type contains "Any" (has type "(...) -> WebSocketServerProtocol") [no-any-expr]
- src/websockets/legacy/server.py:1057:13: error: Expression type contains "Any" (has type "(...) -> WebSocketServerProtocol") [no-any-expr]
- src/websockets/legacy/server.py:1061:13: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1061:34: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any] | (WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1086:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1086:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/server.py:1087:32: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1091:59: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1095:60: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py: note: In member "__await__" of class "Serve":
- src/websockets/legacy/server.py:1118:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1120:16: error: Expression type contains "Any" (has type "Generator[Any, Any, WebSocketServer]") [no-any-expr]
- src/websockets/legacy/server.py: note: In class "Serve":
- src/websockets/legacy/server.py:1129:16: error: Expression type contains "Any" (has type "def (self: Serve) -> Generator[Any, None, WebSocketServer]") [no-any-expr]
- src/websockets/legacy/server.py: note: In function "unix_serve":
- src/websockets/legacy/server.py:1135:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1159:18: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any] | (WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1159:54: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/server.py: note: In function "remove_path_argument":
- src/websockets/legacy/server.py:1162:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1169:27: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any] | (WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1172:31: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any] | (WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1180:13: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1181:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/server.py:1181:30: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1181:30: error: Expression type contains "Any" (has type "(WebSocketServerProtocol, str) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1181:30: error: Expression type contains "Any" (has type "Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/server.py:1186:20: error: Expression type contains "Any" (has type "def (websocket: WebSocketServerProtocol) -> Coroutine[Any, Any, Any]") [no-any-expr]
- src/websockets/legacy/server.py:1188:12: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/server.py:1188:12: error: Expression type contains "Any" (has type "(WebSocketServerProtocol) -> Awaitable[Any]") [no-any-expr]
- src/websockets/legacy/client.py: note: In member "__init__" of class "WebSocketClientProtocol":
- src/websockets/legacy/client.py:77:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/client.py:90:43: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py: note: In member "__init__" of class "Connect":
- src/websockets/legacy/client.py:419:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/client.py:442:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:452:55: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:458:12: error: Expression type contains "Any" (has type "(...) -> WebSocketClientProtocol | None") [no-any-expr]
- src/websockets/legacy/client.py:462:29: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:465:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:474:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:475:14: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:475:14: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/legacy/client.py:491:27: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/client.py:491:27: error: Expression type contains "Any" (has type "(...) -> WebSocketClientProtocol") [no-any-expr]
- src/websockets/legacy/client.py:493:13: error: Expression type contains "Any" (has type "(...) -> WebSocketClientProtocol") [no-any-expr]
- src/websockets/legacy/client.py:514:12: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:514:12: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:515:32: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:517:63: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:522:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:522:16: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/legacy/client.py:527:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:527:20: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/websockets/legacy/client.py:528:21: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:530:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:530:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:531:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:531:20: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:533:50: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:533:56: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:533:64: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py: note: In member "handle_redirect" of class "Connect":
- src/websockets/legacy/client.py:567:23: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/legacy/client.py:567:23: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:570:17: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:571:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py:573:23: error: Expression type contains "Any" (has type "partial[Any]") [no-any-expr]
- src/websockets/legacy/client.py:574:17: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:575:18: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:576:19: error: Expression type contains "Any" (has type "dict[str, Any | str | int]") [no-any-expr]
- src/websockets/legacy/client.py:576:24: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/client.py:580:17: error: Expression type contains "Any" (has type "(...) -> Coroutine[Any, Any, (Transport, WebSocketClientProtocol)]") [no-any-expr]
- src/websockets/legacy/client.py:581:18: error: Expression type contains "Any" (has type "(partial[Any], str, int)") [no-any-expr]
- src/websockets/legacy/client.py:581:19: error: Expression type contains "Any" (has type "partial[Any]") [no-any-expr]
- src/websockets/legacy/client.py:582:19: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/client.py: note: In member "__await__" of class "Connect":
- src/websockets/legacy/client.py:645:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/client.py:647:16: error: Expression type contains "Any" (has type "Generator[Any, Any, WebSocketClientProtocol]") [no-any-expr]
- src/websockets/legacy/client.py: note: In class "Connect":
- src/websockets/legacy/client.py:678:16: error: Expression type contains "Any" (has type "def (self: Connect) -> Generator[Any, None, WebSocketClientProtocol]") [no-any-expr]
- src/websockets/legacy/client.py: note: In function "unix_connect":
- src/websockets/legacy/client.py:684:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/client.py:705:53: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/__main__.py: note: In function "main":
- src/websockets/__main__.py:111:8: error: Expression has type "Any" [no-any-expr]
- src/websockets/__main__.py:115:8: error: Expression has type "Any" [no-any-expr]
- src/websockets/__main__.py:131:29: error: Expression has type "Any" [no-any-expr]
- src/websockets/__main__.py:133:38: error: Expression has type "Any" [no-any-expr]
- src/websockets/__main__.py:136:30: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/auth.py: note: In function "is_credentials":
- src/websockets/legacy/auth.py:20:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/auth.py:22:30: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/auth.py:26:27: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/auth.py:26:57: error: Expression has type "Any" [no-any-expr]
- src/websockets/legacy/auth.py: note: In member "__init__" of class "BasicAuthWebSocketServerProtocol":
- src/websockets/legacy/auth.py:46:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/auth.py:56:27: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/websockets/legacy/auth.py:56:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/websockets/legacy/auth.py: note: In member "process_request" of class "BasicAuthWebSocketServerProtocol":
- src/websockets/legacy/auth.py:79:5: error: Method "process_request" is not using @override but is overriding a method in class "websockets.legacy.server.WebSocketServerProtocol" [explicit-override]
- src/websockets/legacy/auth.py: note: In function "basic_auth_protocol_factory":
- src/websockets/legacy/auth.py:118:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/auth.py:162:14: error: Condition is always true [redundant-expr]
- src/websockets/legacy/auth.py:165:65: error: The type "typing.Iterable[(str, str)]" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- src/websockets/legacy/auth.py:178:8: error: Expression type contains "Any" (has type "(...) -> BasicAuthWebSocketServerProtocol | None") [no-any-expr]
- src/websockets/legacy/auth.py:183:23: error: Explicit "Any" is not allowed [no-any-explicit]
- src/websockets/legacy/auth.py:183:23: error: Expression type contains "Any" (has type "(...) -> BasicAuthWebSocketServerProtocol") [no-any-expr]
- src/websockets/legacy/auth.py:187:9: error: Expression type contains "Any" (has type "(...) -> BasicAuthWebSocketServerProtocol") [no-any-expr]
mypy_primer (https://github.com/hauntsaninja/mypy_primer)
- mypy_primer/globals.py: note: In function "parse_options":
- mypy_primer/globals.py:115:17: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- mypy_primer/globals.py:115:17: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info
- mypy_primer/globals.py:201:19: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py: note: In member "__format__" of class "Style":
- mypy_primer/utils.py:56:5: error: Method "__format__" is not using @override but is overriding a method in class "enum.Enum" [explicit-override]
- mypy_primer/utils.py:56:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- mypy_primer/utils.py: note: In function "debug_print":
- mypy_primer/utils.py:64:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mypy_primer/utils.py:64:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-explicit for more info
- mypy_primer/utils.py:66:11: error: Expression has type "Any" [no-any-expr]
- mypy_primer/utils.py: note: In function "run":
- mypy_primer/utils.py:72:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mypy_primer/utils.py:81:9: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:82:9: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:84:9: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:85:9: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:94:25: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:95:43: error: Expression has type "Any" [no-any-expr]
- mypy_primer/utils.py:95:44: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:101:65: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:104:65: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mypy_primer/utils.py:109:42: error: If condition is always true [redundant-expr]
- mypy_primer/utils.py:109:42: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- mypy_primer/utils.py:110:42: error: If condition is always true [redundant-expr]
- mypy_primer/utils.py: note: At top level:
- mypy_primer/utils.py:173: error: "type: ignore" comment without error code (consider "type: ignore[misc, union-attr]" instead) [ignore-without-code]
- mypy_primer/git_utils.py: note: In function "ensure_repo_at_revision":
- mypy_primer/git_utils.py:75:35: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py: note: In member "__repr__" of class "Project":
- mypy_primer/model.py:51:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mypy_primer/model.py: note: In member "setup" of class "Project":
- mypy_primer/model.py:140:20: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:141:27: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:142:20: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:143:27: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:154:20: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:155:27: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:156:20: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py:157:27: error: Expression has type "Any" [no-any-expr]
- mypy_primer/model.py: note: In member "__str__" of class "TypeCheckResult":
- mypy_primer/model.py:331:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mypy_primer/main.py: note: In function "validate_expected_success":
- mypy_primer/main.py:194:61: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- mypy_primer/main.py:194:61: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-helpful-string for more info
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/typeshed/stdlib/argparse.pyi:50: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.9.0+dev.a252e2a25e0fb702e229ed34cf9bc4ab1cd8a984
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 107, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 216, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 199, in build
+ result = _build(
+ File "/build.py", line 277, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3090, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3490, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3585, in process_stale_scc
+ mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+ File "/semanal_main.py", line 93, in semantic_analysis_for_scc
+ process_top_levels(graph, scc, patches)
+ File "/semanal_main.py", line 220, in process_top_levels
+ deferred, incomplete, progress = semantic_analyze_target(
+ File "/semanal_main.py", line 351, in semantic_analyze_target
+ analyzer.refresh_partial(
+ File "/semanal.py", line 630, in refresh_partial
+ self.refresh_top_level(node)
+ File "/semanal.py", line 647, in refresh_top_level
+ self.accept(d)
+ File "/semanal.py", line 7301, in accept
+ node.accept(self)
+ File "/nodes.py", line 1357, in accept
+ return visitor.visit_assignment_stmt(self)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 3288, in visit_assignment_stmt
+ elif self.newtype_analyzer.process_newtype_declaration(s):
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal_newtype.py", line 144, in process_newtype_declaration
+ fallback=self.api.named_type("typing.Callable"),
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 6623, in named_type
+ assert isinstance(node, TypeInfo)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AssertionError:
pegen (https://github.com/we-like-parsers/pegen)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/typeshed/stdlib/argparse.pyi:50: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.9.0+dev.a252e2a25e0fb702e229ed34cf9bc4ab1cd8a984
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 107, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 216, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 199, in build
+ result = _build(
+ File "/build.py", line 277, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3090, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3490, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3585, in process_stale_scc
+ mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+ File "/semanal_main.py", line 93, in semantic_analysis_for_scc
+ process_top_levels(graph, scc, patches)
+ File "/semanal_main.py", line 220, in process_top_levels
+ deferred, incomplete, progress = semantic_analyze_target(
+ File "/semanal_main.py", line 351, in semantic_analyze_target
+ analyzer.refresh_partial(
+ File "/semanal.py", line 630, in refresh_partial
+ self.refresh_top_level(node)
+ File "/semanal.py", line 647, in refresh_top_level
+ self.accept(d)
+ File "/semanal.py", line 7301, in accept
+ node.accept(self)
+ File "/nodes.py", line 1357, in accept
+ return visitor.visit_assignment_stmt(self)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 3288, in visit_assignment_stmt
+ elif self.newtype_analyzer.process_newtype_declaration(s):
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal_newtype.py", line 144, in process_newtype_declaration
+ fallback=self.api.named_type("typing.Callable"),
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 6623, in named_type
+ assert isinstance(node, TypeInfo)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AssertionError:
- src/pegen/grammar.py: note: In member "visit" of class "GrammarVisitor":
- src/pegen/grammar.py:26:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/grammar.py:26:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-explicit for more info
- src/pegen/grammar.py:28:18: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:28:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:28:29: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info
- src/pegen/grammar.py:29:33: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:29:41: error: Expression type contains "Any" (has type "_NamedCallable & (node: Iterable[Any], *args: Any, **kwargs: Any) -> None") [no-any-expr]
- src/pegen/grammar.py:30:16: error: "object" not callable [operator]
- src/pegen/grammar.py:30:16: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-operator for more info
- src/pegen/grammar.py:30:24: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:30:31: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/pegen/grammar.py:30:39: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/grammar.py: note: In member "generic_visit" of class "GrammarVisitor":
- src/pegen/grammar.py:32:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/grammar.py:34:9: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:34:22: error: Expression type contains "Any" (has type "Iterable[Any]") [no-any-expr]
- src/pegen/grammar.py:35:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:37:39: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/pegen/grammar.py:37:47: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/grammar.py:39:28: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar.py:39:36: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- src/pegen/grammar.py:39:44: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/grammar.py: note: In member "__str__" of class "Grammar":
- src/pegen/grammar.py:47:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py:47:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- src/pegen/grammar.py: note: In member "__repr__" of class "Grammar":
- src/pegen/grammar.py:50:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Rule":
- src/pegen/grammar.py:85:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Rule":
- src/pegen/grammar.py:96:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Leaf":
- src/pegen/grammar.py:126:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__iter__" of class "Leaf":
- src/pegen/grammar.py:130:12: error: Condition is always false [redundant-expr]
- src/pegen/grammar.py:130:12: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- src/pegen/grammar.py:131:13: error: Statement is unreachable [unreachable]
- src/pegen/grammar.py:131:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-unreachable for more info
- src/pegen/grammar.py: note: In member "__str__" of class "NameLeaf":
- src/pegen/grammar.py:141:5: error: Method "__str__" is not using @override but is overriding a method in class "pegen.grammar.Leaf" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "NameLeaf":
- src/pegen/grammar.py:146:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "initial_names" of class "NameLeaf":
- src/pegen/grammar.py:149:5: error: Method "initial_names" is not using @override but is overriding a method in class "pegen.grammar.Leaf" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "StringLeaf":
- src/pegen/grammar.py:156:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "initial_names" of class "StringLeaf":
- src/pegen/grammar.py:159:5: error: Method "initial_names" is not using @override but is overriding a method in class "pegen.grammar.Leaf" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Rhs":
- src/pegen/grammar.py:168:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Rhs":
- src/pegen/grammar.py:171:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Alt":
- src/pegen/grammar.py:194:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Alt":
- src/pegen/grammar.py:201:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "NamedItem":
- src/pegen/grammar.py:232:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py:234:34: error: The type "pegen.grammar.Repeat" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- src/pegen/grammar.py:234:34: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-helpful-string for more info
- src/pegen/grammar.py: note: In member "__repr__" of class "NamedItem":
- src/pegen/grammar.py:238:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Forced":
- src/pegen/grammar.py:255:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Lookahead":
- src/pegen/grammar.py:270:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "PositiveLookahead":
- src/pegen/grammar.py:284:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "NegativeLookahead":
- src/pegen/grammar.py:292:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Opt":
- src/pegen/grammar.py:300:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Opt":
- src/pegen/grammar.py:308:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Repeat0":
- src/pegen/grammar.py:333:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Repeat0":
- src/pegen/grammar.py:341:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Repeat1":
- src/pegen/grammar.py:346:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Repeat1":
- src/pegen/grammar.py:354:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Gather":
- src/pegen/grammar.py:363:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Gather":
- src/pegen/grammar.py:366:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Group":
- src/pegen/grammar.py:374:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Group":
- src/pegen/grammar.py:377:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__repr__" of class "Cut":
- src/pegen/grammar.py:391:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__str__" of class "Cut":
- src/pegen/grammar.py:394:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/grammar.py: note: In member "__iter__" of class "Cut":
- src/pegen/grammar.py:398:12: error: Condition is always false [redundant-expr]
- src/pegen/grammar.py:399:13: error: Statement is unreachable [unreachable]
- src/pegen/grammar.py: note: In member "__eq__" of class "Cut":
- src/pegen/grammar.py:401:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- src/pegen/parser_generator.py: note: In member "__init__" of class "NullableVisitor":
- src/pegen/parser_generator.py:169:9: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser_generator.py: note: In member "visit_Rule" of class "NullableVisitor":
- src/pegen/parser_generator.py:172:20: error: Expression type contains "Any" (has type "set[Any]") [no-any-expr]
- src/pegen/parser_generator.py:174:9: error: Expression type contains "Any" (has type "set[Any]") [no-any-expr]
- src/pegen/parser_generator.py:175:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In member "visit_Rhs" of class "NullableVisitor":
- src/pegen/parser_generator.py:181:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In member "visit_Alt" of class "NullableVisitor":
- src/pegen/parser_generator.py:187:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In member "visit_Group" of class "NullableVisitor":
- src/pegen/parser_generator.py:213:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/parser_generator.py:213:9: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-return for more info
- src/pegen/parser_generator.py:213:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In member "visit_NamedItem" of class "NullableVisitor":
- src/pegen/parser_generator.py:216:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In member "visit_NameLeaf" of class "NullableVisitor":
- src/pegen/parser_generator.py:222:13: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/parser_generator.py:222:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser_generator.py: note: In function "compute_left_recursives":
- src/pegen/parser_generator.py:255:38: error: Expression type contains "Any" (has type "set[Any]") [no-any-expr]
- src/pegen/parser_generator.py:258:35: error: The type "typing.AbstractSet[str]" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- src/pegen/validator.py: note: In member "check_intersection" of class "SubRuleValidator":
- src/pegen/validator.py:32:22: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- src/pegen/python_generator.py: note: In member "visit_NamedItem" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:58:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/python_generator.py:58:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Rhs" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:61:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Alt" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:64:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "lookahead_call_helper" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:67:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/python_generator.py:67:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Opt" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:76:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/python_generator.py:76:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Repeat" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:79:9: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:79:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Gather" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:82:9: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:82:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Group" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:85:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/python_generator.py:85:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Forced" of class "InvalidNodeVisitor":
- src/pegen/python_generator.py:91:9: error: Returning Any from function declared to return "bool" [no-any-return]
- src/pegen/python_generator.py:91:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "__init__" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:97:9: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/python_generator.py: note: In member "visit_StringLeaf" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:123:15: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:124:40: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:126:35: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:128:40: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Rhs" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:132:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:133:13: error: Returning Any from function declared to return "(str | None, str)" [no-any-return]
- src/pegen/python_generator.py:133:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:133:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:135:13: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:135:32: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:138:13: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:139:9: error: Returning Any from function declared to return "(str | None, str)" [no-any-return]
- src/pegen/python_generator.py:139:16: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:139:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_NamedItem" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:142:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:145:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:145:16: error: Expression type contains "Any" (has type "(Any, Any)") [no-any-expr]
- src/pegen/python_generator.py:145:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "lookahead_call_helper" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:148:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:149:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:150:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:151:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:152:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:152:16: error: Expression type contains "Any" (has type "(Any, Any)") [no-any-expr]
- src/pegen/python_generator.py:152:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Opt" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:163:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:167:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:168:20: error: Expression type contains "Any" (has type "(str, Any)") [no-any-expr]
- src/pegen/python_generator.py:168:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:170:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Repeat0" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:173:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:174:13: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:174:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:174:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:176:9: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:177:9: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:177:16: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:177:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Repeat1" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:180:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:181:13: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:181:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:181:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:183:9: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:184:9: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:184:16: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:184:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Gather" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:187:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:188:13: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:188:20: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:188:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:190:9: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:191:9: error: Returning Any from function declared to return "(str, str)" [no-any-return]
- src/pegen/python_generator.py:191:16: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- src/pegen/python_generator.py:191:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Group" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:194:9: error: Returning Any from function declared to return "(str | None, str)" [no-any-return]
- src/pegen/python_generator.py:194:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Forced" of class "PythonCallMakerVisitor":
- src/pegen/python_generator.py:201:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:202:51: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "generic_visit" of class "UsedNamesVisitor":
- src/pegen/python_generator.py:211:5: error: Method "generic_visit" is not using @override but is overriding a method in class "ast.NodeVisitor" [explicit-override]
- src/pegen/python_generator.py:213:9: error: Expression type contains "Any" (has type "(str, Any)") [no-any-expr]
- src/pegen/python_generator.py:213:9: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:213:25: error: Expression type contains "Any" (has type "Iterator[(str, Any)]") [no-any-expr]
- src/pegen/python_generator.py:214:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:217:25: error: Expression type contains "Any" (has type "set[Any (from omitted generics)]") [no-any-expr]
- src/pegen/python_generator.py:217:25: error: Call to incomplete function "update" of "set" in typed context [no-untyped-call]
- src/pegen/python_generator.py:217:25: note: Type is "_NamedCallable & (*s: typing.Iterable[Any (from omitted generics)]) -> None"
- src/pegen/python_generator.py:217:25: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-call for more info
- src/pegen/python_generator.py:217:39: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:218:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:219:17: error: Expression type contains "Any" (has type "set[Any (from omitted generics)]") [no-any-expr]
- src/pegen/python_generator.py:219:17: error: Call to incomplete function "update" of "set" in typed context [no-untyped-call]
- src/pegen/python_generator.py:219:17: note: Type is "_NamedCallable & (*s: typing.Iterable[Any (from omitted generics)]) -> None"
- src/pegen/python_generator.py:219:31: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:220:16: error: Expression type contains "Any" (has type "set[Any (from omitted generics)]") [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Name" of class "UsedNamesVisitor":
- src/pegen/python_generator.py:222:5: error: Method "visit_Name" is not using @override but is overriding a method in class "ast.NodeVisitor" [explicit-override]
- src/pegen/python_generator.py: note: In member "generate" of class "PythonParserGenerator":
- src/pegen/python_generator.py:251:5: error: Method "generate" is not using @override but is overriding a method in class "pegen.parser_generator.ParserGenerator" [explicit-override]
- src/pegen/python_generator.py:260:28: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- src/pegen/python_generator.py: note: In member "visit_NamedItem" of class "PythonParserGenerator":
- src/pegen/python_generator.py:334:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:340:33: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:343:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:345:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:347:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:348:36: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:349:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:349:37: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py: note: In member "visit_Alt" of class "PythonParserGenerator":
- src/pegen/python_generator.py:391:23: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:394:12: error: Expression type contains "Any" (has type "False | Any") [no-any-expr]
- src/pegen/python_generator.py:394:45: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:410:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:412:17: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:423:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/python_generator.py:431:43: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- src/pegen/python_generator.py:438:87: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:15:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In function "logger":
- src/pegen/parser.py:23:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:28:19: error: Expression type contains "Any" (has type "F@logger") [no-any-expr]
- src/pegen/parser.py:28:19: error: "F@logger" has no attribute "__name__" [attr-defined]
- src/pegen/parser.py:30:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In function "logger_wrapper":
- src/pegen/parser.py:30:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:32:13: error: Returning Any from function declared to return "F@logger" [no-any-return]
- src/pegen/parser.py:32:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:37:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:39:54: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:40:9: error: Returning Any from function declared to return "F@logger" [no-any-return]
- src/pegen/parser.py:40:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py: note: At top level:
- src/pegen/parser.py:42: error: "type: ignore" comment without error code (consider "type: ignore[attr-defined, no-any-expr]" instead) [ignore-without-code]
- src/pegen/parser.py: note: In function "logger":
- src/pegen/parser.py:43:12: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:43:12: error: Expression type contains "Any" (has type "F@logger") [no-any-expr]
- src/pegen/parser.py: note: In function "memoize":
- src/pegen/parser.py:46:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:48:19: error: Expression type contains "Any" (has type "F@memoize") [no-any-expr]
- src/pegen/parser.py:48:19: error: "F@memoize" has no attribute "__name__" [attr-defined]
- src/pegen/parser.py:50:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In function "memoize_wrapper":
- src/pegen/parser.py:50:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:54:19: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:55:29: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:55:29: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:55:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:57:13: error: Returning Any from function declared to return "F@memoize" [no-any-return]
- src/pegen/parser.py:57:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:62:23: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:66:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:69:61: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:71:13: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:71:32: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:71:32: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:73:29: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:73:29: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:73:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:75:57: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:77:9: error: Returning Any from function declared to return "F@memoize" [no-any-return]
- src/pegen/parser.py:77:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py: note: At top level:
- src/pegen/parser.py:79: error: "type: ignore" comment without error code (consider "type: ignore[attr-defined, no-any-expr]" instead) [ignore-without-code]
- src/pegen/parser.py: note: In function "memoize":
- src/pegen/parser.py:80:12: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:80:12: error: Expression type contains "Any" (has type "F@memoize") [no-any-expr]
- src/pegen/parser.py: note: In function "memoize_left_rec":
- src/pegen/parser.py:85:19: error: "(P@memoize_left_rec) -> T@memoize_left_rec | None" has no attribute "__name__" [attr-defined]
- src/pegen/parser.py: note: In function "memoize_left_rec_wrapper":
- src/pegen/parser.py:91:19: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:92:29: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:92:29: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:92:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:94:13: error: Returning Any from function declared to return "T@memoize_left_rec | None" [no-any-return]
- src/pegen/parser.py:94:20: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:98:23: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:112:13: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:139:17: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:139:17: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated))") [no-any-expr]
- src/pegen/parser.py:146:50: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:147:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:152:13: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:152:32: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:152:32: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:154:29: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/parser.py:154:29: error: Expression type contains "Any" (has type "(Any, int)") [no-any-expr]
- src/pegen/parser.py:154:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:156:50: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:157:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:159:9: error: Returning Any from function declared to return "T@memoize_left_rec | None" [no-any-return]
- src/pegen/parser.py:159:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py: note: At top level:
- src/pegen/parser.py:161: error: "type: ignore" comment without error code (consider "type: ignore[attr-defined]" instead) [ignore-without-code]
- src/pegen/parser.py: note: In member "__init__" of class "Parser":
- src/pegen/parser.py:176:9: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In member "start" of class "Parser":
- src/pegen/parser.py:190:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In class "Parser":
- src/pegen/parser.py:190:5: error: Type of decorated function contains type "Any" ("def (self: Parser) -> Any") [no-any-decorated]
- src/pegen/parser.py:190:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-decorated for more info
- src/pegen/parser.py:203:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:210:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:217:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:224:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:231:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:238:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:245:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:252:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:259:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py:266:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/parser.py: note: In member "expect" of class "Parser":
- src/pegen/parser.py:274:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/parser.py:275:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:275:28: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/parser.py:275:28: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py: note: In member "expect_forced" of class "Parser":
- src/pegen/parser.py:281:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py:282:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:284:9: error: Returning Any from function declared to return "TokenInfo | None" [no-any-return]
- src/pegen/parser.py:284:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py: note: In member "positive_lookahead" of class "Parser":
- src/pegen/parser.py:286:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In member "negative_lookahead" of class "Parser":
- src/pegen/parser.py:292:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/parser.py: note: In function "simple_parser_main":
- src/pegen/parser.py:319:15: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:320:25: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:321:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:321:38: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:325:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:326:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:326:26: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:330:21: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:332:45: error: Expression type contains "Any" (has type "_NamedCallable & (int=...) -> str | Any") [no-any-expr]
- src/pegen/parser.py:333:49: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:334:50: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:335:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:337:16: error: Expression type contains "Any" (has type "bool | Any") [no-any-expr]
- src/pegen/parser.py:349:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:350:40: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:354:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:355:24: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:356:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:357:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:357:37: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:359:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/parser.py:374:38: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:44:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:45:5: error: Method "start" is not using @override but is overriding a method in class "pegen.parser.Parser" [explicit-override]
- src/pegen/grammar_parser.py:53:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:65:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:77:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "meta" of class "GeneratedParser":
- src/pegen/grammar_parser.py:98:20: error: Expression type contains "Any" (has type "(str, Any)") [no-any-expr]
- src/pegen/grammar_parser.py:98:34: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:102:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:114:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:152:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:164:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:173:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:185:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:202:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:220:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:232:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "named_item" of class "GeneratedParser":
- src/pegen/grammar_parser.py:241:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py:252:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:270:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "forced_atom" of class "GeneratedParser":
- src/pegen/grammar_parser.py:275:59: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:282:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "lookahead" of class "GeneratedParser":
- src/pegen/grammar_parser.py:287:36: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py:293:36: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:303:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "item" of class "GeneratedParser":
- src/pegen/grammar_parser.py:308:36: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:335:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "atom" of class "GeneratedParser":
- src/pegen/grammar_parser.py:340:36: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:353:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "action" of class "GeneratedParser":
- src/pegen/grammar_parser.py:360:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:370:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "annotation" of class "GeneratedParser":
- src/pegen/grammar_parser.py:377:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:387:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:399:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "target_atom" of class "GeneratedParser":
- src/pegen/grammar_parser.py:406:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py:417:18: error: Left operand of "and" is always true [redundant-expr]
- src/pegen/grammar_parser.py:437:44: error: Expression type contains "Any" (has type "(Any,)") [no-any-expr]
- src/pegen/grammar_parser.py:437:45: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_parser.py:437:50: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_parser.py:438:39: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:455:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:473:6: error: Expression type contains "Any" (has type "def [F: (...) -> Any] (method: F) -> F") [no-any-expr]
- src/pegen/grammar_parser.py:473:6: error: Expression type contains "Any" (has type "def (self: GeneratedParser) -> Any | None") [no-any-expr]
- src/pegen/grammar_parser.py: note: In member "_loop0_1" of class "GeneratedParser":
- src/pegen/grammar_parser.py:474:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/grammar_parser.py: note: In class "GeneratedParser":
- src/pegen/grammar_parser.py:474:5: error: Type of decorated function contains type "Any" ("def (self: GeneratedParser) -> Any | None") [no-any-decorated]
- src/pegen/utils.py: note: In function "import_file":
- src/pegen/utils.py:15:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/utils.py:24:14: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/utils.py:24:14: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:25:5: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py: note: In function "generate_parser":
- src/pegen/utils.py:38:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/utils.py:42:15: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:43:16: error: Incompatible return value type (got "object", expected "type[Parser]") [return-value]
- src/pegen/utils.py:43:24: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:45:30: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/utils.py:46:9: error: Returning Any from function declared to return "type[Parser]" [no-any-return]
- src/pegen/utils.py:46:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- src/pegen/utils.py:46:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py: note: In function "run_parser":
- src/pegen/utils.py:49:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/utils.py: note: At top level:
- src/pegen/utils.py:51: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- src/pegen/utils.py: note: In function "run_parser":
- src/pegen/utils.py:53:14: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:54:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:56:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py: note: In function "parse_string":
- src/pegen/utils.py:59:1: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/utils.py: note: At top level:
- src/pegen/utils.py:66: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, no-any-expr]" instead) [ignore-without-code]
- src/pegen/utils.py: note: In function "make_parser":
- src/pegen/utils.py:71:15: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py:72:28: error: Expression has type "Any" [no-any-expr]
- src/pegen/utils.py: note: In function "print_memstats":
- src/pegen/utils.py:82:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/utils.py:83:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/utils.py:85:5: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- src/pegen/utils.py:85:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/utils.py:86:5: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- src/pegen/utils.py:86:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/utils.py:98:9: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- src/pegen/utils.py:99:5: error: Expression type contains "Any" (has type "(str, Any (from unimported type))") [no-any-expr]
- src/pegen/utils.py:99:5: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/utils.py:99:23: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- src/pegen/utils.py:99:23: error: Expression type contains "Any" (has type "dict_items[str, Any (from unimported type)]") [no-any-expr]
- src/pegen/utils.py:100:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:4: error: "type: ignore" comment without error code (consider "type: ignore[import-not-found]" instead) [ignore-without-code]
- src/pegen/web.py:5: error: "type: ignore" comment without error code (consider "type: ignore[import-not-found]" instead) [ignore-without-code]
- src/pegen/web.py:6: error: "type: ignore" comment without error code (consider "type: ignore[import-not-found]" instead) [ignore-without-code]
- src/pegen/web.py:7: error: "type: ignore" comment without error code (consider "type: ignore[import-not-found]" instead) [ignore-without-code]
- src/pegen/web.py:31:7: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:34:1: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:37: error: "type: ignore" comment without error code (consider "type: ignore[no-any-unimported, no-subclass-any]" instead) [ignore-without-code]
- src/pegen/web.py: note: In class "GrammarForm":
- src/pegen/web.py:38:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:38:55: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- src/pegen/web.py:38:56: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:39:14: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:39:50: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- src/pegen/web.py:39:51: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:40:14: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py: note: At top level:
- src/pegen/web.py:43:2: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:43:2: error: Untyped decorator makes function "index" untyped [misc]
- src/pegen/web.py:44:1: error: Function is untyped after decorator transformation [no-any-decorated]
- src/pegen/web.py: note: In function "index":
- src/pegen/web.py:50:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/web.py:51:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:52:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:55:40: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:56:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/web.py:56:35: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:57:19: error: Expression has type "Any" [no-any-expr]
- src/pegen/web.py:61:5: error: Returning Any from function declared to return "None" [no-any-return]
- src/pegen/web.py:61:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py: note: At top level:
- src/pegen/web.py:65:5: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/web.py:65:30: error: Expression type contains "Any" (has type "def (*_: Untyped) -> None") [no-any-expr]
- src/pegen/web.py:66:5: error: Expression has type "Any (from unimported type)" [no-any-expr]
- src/pegen/grammar_visualizer.py: note: In member "children" of class "ASTGrammarPrinter":
- src/pegen/grammar_visualizer.py:15:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/grammar_visualizer.py: note: In member "name" of class "ASTGrammarPrinter":
- src/pegen/grammar_visualizer.py:23:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:23:21: error: Expression type contains "Any" (has type "Iterator[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py: note: In member "print_grammar_ast" of class "ASTGrammarPrinter":
- src/pegen/grammar_visualizer.py:27:5: error: Explicit "Any" is not allowed [no-any-explicit]
- src/pegen/grammar_visualizer.py: note: In member "print_nodes_recursively" of class "ASTGrammarPrinter":
- src/pegen/grammar_visualizer.py:32:20: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:32:25: error: Expression type contains "Any" (has type "Iterator[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:38:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:41:27: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:41:27: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_visualizer.py:42:9: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_visualizer.py:42:22: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- src/pegen/grammar_visualizer.py:43:50: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_visualizer.py:44:46: error: Expression has type "Any" [no-any-expr]
- src/pegen/grammar_visualizer.py: note: In function "main":
- src/pegen/grammar_visualizer.py:53:51: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Alt" of class "FirstSetCalculator":
- src/pegen/first_sets.py:51:29: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py:53:30: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py:54:23: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py:63:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Group" of class "FirstSetCalculator":
- src/pegen/first_sets.py:78:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:78:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_PositiveLookahead" of class "FirstSetCalculator":
- src/pegen/first_sets.py:81:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:81:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_NegativeLookahead" of class "FirstSetCalculator":
- src/pegen/first_sets.py:84:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:84:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_NamedItem" of class "FirstSetCalculator":
- src/pegen/first_sets.py:87:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:87:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Opt" of class "FirstSetCalculator":
- src/pegen/first_sets.py:90:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:90:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Gather" of class "FirstSetCalculator":
- src/pegen/first_sets.py:93:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:93:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Repeat0" of class "FirstSetCalculator":
- src/pegen/first_sets.py:96:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:96:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Repeat1" of class "FirstSetCalculator":
- src/pegen/first_sets.py:99:9: error: Returning Any from function declared to return "set[str]" [no-any-return]
- src/pegen/first_sets.py:99:16: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_NameLeaf" of class "FirstSetCalculator":
- src/pegen/first_sets.py:106:43: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Rhs" of class "FirstSetCalculator":
- src/pegen/first_sets.py:119:23: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In member "visit_Rule" of class "FirstSetCalculator":
- src/pegen/first_sets.py:127:25: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py:129:17: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py:130:42: error: Expression has type "Any" [no-any-expr]
- src/pegen/first_sets.py: note: In function "main":
- src/pegen/first_sets.py:139:51: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:15:1: error: Module "pegen.build" does not explicitly export attribute "Grammar" [attr-defined]
- src/pegen/__main__.py:15:1: error: Module "pegen.build" does not explicitly export attribute "Parser" [attr-defined]
- src/pegen/__main__.py:15:1: error: Module "pegen.build" does not explicitly export attribute "ParserGenerator" [attr-defined]
- src/pegen/__main__.py:15:1: error: Module "pegen.build" does not explicitly export attribute "Tokenizer" [attr-defined]
- src/pegen/__main__.py: note: In function "generate_python_code":
- src/pegen/__main__.py:28:15: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:29:25: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:30:22: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:30:38: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:33:13: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:34:13: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:35:13: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:36:13: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:37:26: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:41:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py: note: In function "main":
- src/pegen/__main__.py:84:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:85:12: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:94:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:113:8: error: Expression has type "Any" [no-any-expr]
- src/pegen/__main__.py:126:38: error: Expression type contains "Any" (has type "dict[(int, str, tuple[Any, ...]), (Any, int)]") [no-any-expr]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/typeshed/stdlib/argparse.pyi:50: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.9.0+dev.a252e2a25e0fb702e229ed34cf9bc4ab1cd8a984
+ note: use --pdb to drop into pdb
- Warning: unused section(s) in mypy.ini: [mypy-websockets.*], [mypy-numba.*], [mypy-numpy.*]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:21:5: error: Argument 1 to "check" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:21:5: error: Argument 1 to "check" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:22:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py:22:16: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:22:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:23:13: error: No return value expected [return-value]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:23:13: error: No return value expected [return-value]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:24:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:24:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:29:16: error: "cog" has type "SuggestionBox" which does not implement __bool__ or __len__ so it could always be true in boolean context [truthy-bool]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:29:16: error: "cog" has type "SuggestionBox" which does not implement __bool__ or __len__ so it could always be true in boolean context [truthy-bool]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:29:16: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-truthy-bool for more info
- suggestionbox/checks.py:30:13: error: No return value expected [return-value]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:30:13: error: No return value expected [return-value]
- suggestionbox/checks.py:31:9: error: No return value expected [return-value]
- suggestionbox/checks.py:31:21: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py:31:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py:31:44: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:33:5: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/checks.py:33:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-return for more info
- suggestionbox/checks.py:33:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py:33:27: error: Expression type contains "Any" (has type "def (ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:26:21: error: Class cannot subclass "Cog" (has type "Any") [no-subclass-any]
- suggestionbox/core.py:26:21: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-subclass-any for more info
- suggestionbox/core.py:26:21: error: Base type Cog becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py:26:21: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-unimported for more info
- suggestionbox/core.py: note: In member "red_delete_data_for_user" of class "SuggestionBox":
- suggestionbox/core.py:42:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:42:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:43:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:44:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:44:44: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:44:54: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:45:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:46:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:46:55: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:48:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:50:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:51:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:51:54: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:51:64: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:52:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:52:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:53:28: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:54:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py: note: In member "format_help_for_context" of class "SuggestionBox":
- suggestionbox/core.py:56:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/core.py:56:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-def for more info
- suggestionbox/core.py:57:25: error: Expression has type "Any" [no-any-expr]
- suggestionbox/core.py:57:57: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:58:9: error: No return value expected [return-value]
- suggestionbox/core.py:58:18: error: Expression has type "Any" [no-any-expr]
- suggestionbox/core.py: note: In member "__init__" of class "SuggestionBox":
- suggestionbox/core.py:60:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/core.py:62:9: error: Usage of untyped name "bot" in typed context [no-untyped-usage]
- suggestionbox/core.py:62:9: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-usage for more info
- suggestionbox/core.py:62:20: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:63:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:66:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:75:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:83:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:84:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:85:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:86:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:87:9: error: Need type annotation for "antispam" (hint: "antispam: dict[<type>, <type>] = ...") [var-annotated]
- suggestionbox/core.py:87:9: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-var-annotated for more info
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:89:6: error: Expression type contains "Any" (has type "def (self: SuggestionBox, ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py:89:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:89:6: error: Untyped decorator makes function "sset" untyped [misc]
- suggestionbox/core.py:90:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:90:6: error: Untyped decorator makes function "sset" untyped [misc]
- suggestionbox/core.py:91:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:91:6: error: Untyped decorator makes function "sset" untyped [misc]
- suggestionbox/core.py: note: In member "sset" of class "SuggestionBox":
- suggestionbox/core.py:92:5: error: Argument 2 to "sset" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:92:5: error: Function is untyped after decorator transformation [no-any-decorated]
- suggestionbox/core.py:92:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-decorated for more info
- suggestionbox/core.py:98:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:98:6: error: Untyped decorator makes function "sset_make" untyped [misc]
- suggestionbox/core.py:98:6: error: Expression type contains "Any" (has type "def (self: SuggestionBox, ctx: Untyped, *, channel: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py: note: In member "sset_make" of class "SuggestionBox":
- suggestionbox/core.py:99:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/core.py:99:5: error: Argument 3 to "sset_make" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:99:5: error: Function is untyped after decorator transformation [no-any-decorated]
- suggestionbox/core.py: note: In member "sset_make" of class "SuggestionBox":
- suggestionbox/core.py:103:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:103:38: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:104:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:104:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:105:17: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:105:24: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:105:30: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:106:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:106:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:108:15: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:110:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:110:6: error: Untyped decorator makes function "sset_rm" untyped [misc]
- suggestionbox/core.py:110:6: error: Expression type contains "Any" (has type "def (self: SuggestionBox, ctx: Untyped, *, channel: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py: note: In member "sset_rm" of class "SuggestionBox":
- suggestionbox/core.py:111:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/core.py:111:5: error: Argument 3 to "sset_rm" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:111:5: error: Function is untyped after decorator transformation [no-any-decorated]
- suggestionbox/core.py: note: In member "sset_rm" of class "SuggestionBox":
- suggestionbox/core.py:115:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:115:38: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:116:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:116:34: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:117:17: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:117:24: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:117:30: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:118:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:118:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:120:15: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:122:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:122:6: error: Untyped decorator makes function "sset_adds_reactions" untyped [misc]
- suggestionbox/core.py:122:6: error: Expression type contains "Any" (has type "def (self: SuggestionBox, ctx: Untyped, option: bool | None=...) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py: note: In member "sset_adds_reactions" of class "SuggestionBox":
- suggestionbox/core.py:123:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:123:5: error: Function is untyped after decorator transformation [no-any-decorated]
- suggestionbox/core.py: note: In member "sset_adds_reactions" of class "SuggestionBox":
- suggestionbox/core.py:133:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:133:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:133:47: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:134:36: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:134:37: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:135:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:146:19: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:149:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:149:33: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py:150:15: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:152:6: error: Expression type contains "Any" (has type "def (self: SuggestionBox, ctx: Any (from unimported type), channel: Any (from unimported type) | None=..., *, suggestion: str = ...) -> Coroutine[Any, Any, None]") [no-any-expr]
- suggestionbox/core.py:152:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:152:6: error: "has_active_box" does not return a value (it only ever returns None) [func-returns-value]
- suggestionbox/core.py:152:6: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-func-returns-value for more info
- suggestionbox/core.py:152:6: error: Untyped decorator makes function "suggest" untyped [misc]
- suggestionbox/core.py:152:6: error: "None" not callable [misc]
- suggestionbox/core.py:153:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:153:6: error: Untyped decorator makes function "suggest" untyped [misc]
- suggestionbox/core.py:154:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:154:6: error: Untyped decorator makes function "suggest" untyped [misc]
- suggestionbox/core.py: note: In member "suggest" of class "SuggestionBox":
- suggestionbox/core.py:155:5: error: Argument 2 to "suggest" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py:155:5: error: Argument 3 to "suggest" becomes "Any (from unimported type) | None" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py: note: In class "SuggestionBox":
- suggestionbox/core.py:155:5: error: Function is untyped after decorator transformation [no-any-decorated]
- suggestionbox/core.py: note: In member "suggest" of class "SuggestionBox":
- suggestionbox/core.py:169:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:169:29: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:170:13: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:170:13: error: Untyped indexed-assignment to "antispam" in typed context [no-untyped-usage]
- suggestionbox/core.py:170:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:170:40: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:172:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:172:30: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:172:30: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:172:44: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:173:13: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:173:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:173:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:173:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:173:52: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:175:12: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:175:12: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:175:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:175:37: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:176:13: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:176:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:176:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:179:13: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:179:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:179:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:181:19: error: Expression type contains "Any" (has type "Any (from unimported type) | None") [no-any-expr]
- suggestionbox/core.py:181:25: error: Expression type contains "Any" (has type "Coroutine[Any, Any, Any (from unimported type) | None]") [no-any-expr]
- suggestionbox/core.py:181:53: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:181:58: error: Expression type contains "Any" (has type "Any (from unimported type) | None") [no-any-expr]
- suggestionbox/core.py:182:16: error: Expression type contains "Any" (has type "Any (from unimported type) | None") [no-any-expr]
- suggestionbox/core.py:185:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:185:41: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:186:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:186:41: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:187:13: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:187:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:187:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:189:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:189:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:189:44: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:191:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:192:40: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:192:41: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:192:67: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:192:68: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:193:22: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:197:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:197:25: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:197:44: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:198:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:199:13: error: Returning Any from function declared to return "None" [no-any-return]
- suggestionbox/core.py:199:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:199:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:201:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:201:52: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:202:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:203:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:204:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:204:71: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:206:13: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- suggestionbox/core.py:206:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- suggestionbox/core.py:206:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:206:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:207:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:207:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:207:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:209:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:209:40: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:211:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:212:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:215:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:215:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:215:36: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:217:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:217:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:217:35: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:217:53: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:218:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:218:40: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py: note: In member "get_suggestion_channel" of class "SuggestionBox":
- suggestionbox/core.py:220:5: error: Return type becomes "Coroutine[Any, Any, Any (from unimported type) | None]" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py:220:5: error: Argument 2 to "get_suggestion_channel" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py:220:5: error: Argument 3 to "get_suggestion_channel" becomes "Any (from unimported type) | None" due to an unfollowed import [no-any-unimported]
- suggestionbox/core.py:225:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:225:21: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:225:39: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:226:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:226:20: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:226:21: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:226:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:226:59: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:226:67: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:228:16: error: Expression type contains "Any" (has type "Any (from unimported type) | None") [no-any-expr]
- suggestionbox/core.py:229:20: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:230:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:235:20: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:236:30: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:242:52: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:242:53: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:242:72: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:243:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:246:14: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:246:29: error: Expression type contains "Any" (has type "list[Any (from unimported type)]") [no-any-expr]
- suggestionbox/core.py:247:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/core.py:250:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py: note: In function "before_invoke_hook":
- noadmin/__init__.py:25:1: error: Argument 1 to "before_invoke_hook" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- noadmin/__init__.py:26:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:27:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:30:8: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:30:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:33:8: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:33:14: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:33:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:36:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:36:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:37:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:37:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:39:8: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:40:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:41:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:41:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:41:46: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:41:56: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:42:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:44:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py:49:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- noadmin/__init__.py: note: In function "setup":
- noadmin/__init__.py:52:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- noadmin/__init__.py:53:5: error: Expression has type "Untyped" [no-any-expr]
- noadmin/__init__.py:53:23: error: Expression type contains "Any" (has type "def (ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- noadmin/__init__.py: note: In function "teardown":
- noadmin/__init__.py:56:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- noadmin/__init__.py:57:5: error: Expression has type "Untyped" [no-any-expr]
- noadmin/__init__.py:57:35: error: Expression type contains "Any" (has type "def (ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:24:19: error: Class cannot subclass "Cog" (has type "Any") [no-subclass-any]
- modonlymode/core.py:24:19: error: Base type Cog becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In member "red_delete_data_for_user" of class "ModOnlyMode":
- modonlymode/core.py:31:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- modonlymode/core.py: note: In member "format_help_for_context" of class "ModOnlyMode":
- modonlymode/core.py:35:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- modonlymode/core.py:36:25: error: Expression has type "Any" [no-any-expr]
- modonlymode/core.py:36:57: error: Expression has type "Untyped" [no-any-expr]
- modonlymode/core.py:37:9: error: No return value expected [return-value]
- modonlymode/core.py:37:18: error: Expression has type "Any" [no-any-expr]
- modonlymode/core.py: note: In member "__init__" of class "ModOnlyMode":
- modonlymode/core.py:39:5: error: Argument 2 to "__init__" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:39:5: error: Argument 3 to "__init__" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:39:5: error: Argument 4 to "__init__" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:39:5: error: Argument 5 to "__init__" becomes "dict[str, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:46:9: error: Type of variable becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:46:25: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:47:9: error: Type of variable becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:47:37: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:48:9: error: Type of variable becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:48:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:49:9: error: Type of variable becomes "dict[str, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In member "setup" of class "ModOnlyMode":
- modonlymode/core.py:52:5: error: Argument 2 to "setup" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:52:5: error: Type of decorated function contains type "Any" ("def (cls: type[ModOnlyMode], bot: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-decorated]
- modonlymode/core.py: note: In member "setup" of class "ModOnlyMode":
- modonlymode/core.py:53:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:54:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:56:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:56:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:58:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:59:9: error: Type of variable becomes "dict[str, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:60:13: error: Expression type contains "Any" (has type "def () -> Any (from unimported type)") [no-any-expr]
- modonlymode/core.py: note: In function "setup":
- modonlymode/core.py:60:21: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In member "setup" of class "ModOnlyMode":
- modonlymode/core.py:63:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:63:37: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:64:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:65:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:65:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:66:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:66:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:67:17: error: Expression type contains "Any" (has type "defaultdict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:67:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:67:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:67:48: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:69:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:69:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:69:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:69:39: error: Expression type contains "Any" (has type "defaultdict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:70:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In member "__permissions_hook" of class "ModOnlyMode":
- modonlymode/core.py:72:5: error: Argument 2 to "__permissions_hook" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py:73:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:73:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:73:41: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:74:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:74:43: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:75:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:75:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:75:42: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:76:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:76:32: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:76:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:76:53: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:77:21: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:84:6: error: Expression type contains "Any" (has type "def (self: ModOnlyMode, ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py:84:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:84:6: error: Untyped decorator makes function "momset" untyped [misc]
- modonlymode/core.py:85:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:85:6: error: Untyped decorator makes function "momset" untyped [misc]
- modonlymode/core.py:86:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:86:6: error: Untyped decorator makes function "momset" untyped [misc]
- modonlymode/core.py: note: In member "momset" of class "ModOnlyMode":
- modonlymode/core.py:87:5: error: Argument 2 to "momset" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:87:5: error: Function is untyped after decorator transformation [no-any-decorated]
- modonlymode/core.py:92:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:92:6: error: Untyped decorator makes function "enable" untyped [misc]
- modonlymode/core.py:92:6: error: Expression type contains "Any" (has type "def (self: ModOnlyMode, ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py: note: In member "enable" of class "ModOnlyMode":
- modonlymode/core.py:93:5: error: Argument 2 to "enable" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:93:5: error: Function is untyped after decorator transformation [no-any-decorated]
- modonlymode/core.py: note: In member "enable" of class "ModOnlyMode":
- modonlymode/core.py:102:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:102:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:103:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:103:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:103:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:105:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:105:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:106:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:106:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:107:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:109:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:109:6: error: Untyped decorator makes function "disable" untyped [misc]
- modonlymode/core.py:109:6: error: Expression type contains "Any" (has type "def (self: ModOnlyMode, ctx: Any (from unimported type)) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py: note: In member "disable" of class "ModOnlyMode":
- modonlymode/core.py:110:5: error: Argument 2 to "disable" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:110:5: error: Function is untyped after decorator transformation [no-any-decorated]
- modonlymode/core.py: note: In member "disable" of class "ModOnlyMode":
- modonlymode/core.py:115:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:115:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:116:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:116:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:116:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:118:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:118:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:119:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:119:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:120:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:122:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:122:6: error: Untyped decorator makes function "excludecog" untyped [misc]
- modonlymode/core.py:122:6: error: Expression type contains "Any" (has type "def (self: ModOnlyMode, ctx: Any (from unimported type), *, cog_name: str) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py: note: In member "excludecog" of class "ModOnlyMode":
- modonlymode/core.py:123:5: error: Argument 2 to "excludecog" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:123:5: error: Function is untyped after decorator transformation [no-any-decorated]
- modonlymode/core.py: note: In member "excludecog" of class "ModOnlyMode":
- modonlymode/core.py:128:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:129:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:129:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:129:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:131:12: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:131:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:131:47: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:132:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:132:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:132:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:134:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:134:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:135:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:136:13: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:136:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:136:48: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:137:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:139:6: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:139:6: error: Untyped decorator makes function "reincludecog" untyped [misc]
- modonlymode/core.py:139:6: error: Expression type contains "Any" (has type "def (self: ModOnlyMode, ctx: Any (from unimported type), *, cog_name: str) -> Coroutine[Any, Any, None]") [no-any-expr]
- modonlymode/core.py: note: In member "reincludecog" of class "ModOnlyMode":
- modonlymode/core.py:140:5: error: Argument 2 to "reincludecog" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modonlymode/core.py: note: In class "ModOnlyMode":
- modonlymode/core.py:140:5: error: Function is untyped after decorator transformation [no-any-decorated]
- modonlymode/core.py: note: In member "reincludecog" of class "ModOnlyMode":
- modonlymode/core.py:145:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:146:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:146:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:146:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:148:16: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:148:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:148:51: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:149:13: error: Returning Any from function declared to return "None" [no-any-return]
- modonlymode/core.py:149:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:149:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:151:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:151:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:152:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:153:13: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- modonlymode/core.py:153:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:153:51: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modonlymode/core.py:154:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:22:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py: note: In class "MemberOrID":
- modnotes/converters.py:28:5: error: Type of variable becomes "Any (from unimported type) | None" due to an unfollowed import [no-any-unimported]
- modnotes/converters.py: note: In member "convert" of class "MemberOrID":
- modnotes/converters.py:32:5: error: Argument 1 to "convert" becomes "type[MemberOrID]" due to an unfollowed import [no-any-unimported]
- modnotes/converters.py:32:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- modnotes/converters.py: note: In class "MemberOrID":
- modnotes/converters.py:32:5: error: Type of decorated function contains type "Any" ("def (cls: type[MemberOrID], ctx: Any (from unimported type), argument: str) -> Coroutine[Any, Any, None]") [no-any-decorated]
- modnotes/converters.py: note: In member "convert" of class "MemberOrID":
- modnotes/converters.py:35:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:35:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:35:66: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:36:13: error: No return value expected [return-value]
- modnotes/converters.py:36:20: error: Expression type contains "Any" (has type "MemberOrID") [no-any-expr]
- modnotes/converters.py:36:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:36:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- modnotes/converters.py:40:13: error: No return value expected [return-value]
- modnotes/converters.py:40:20: error: Expression type contains "Any" (has type "MemberOrID") [no-any-expr]
- modnotes/converters.py:42:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- devtools/patches.py: note: In class "StableMentions":
- devtools/patches.py:19:22: error: Class cannot subclass "AllowedMentions" (has type "Any") [no-subclass-any]
- devtools/patches.py:19:22: error: Base type AllowedMentions becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- devtools/patches.py: note: At top level:
- devtools/patches.py:22: error: "type: ignore" comment without error code (consider "type: ignore[no-untyped-def]" instead) [ignore-without-code]
- devtools/patches.py: note: In function "everyone":
- devtools/patches.py:24:9: error: No return value expected [return-value]
- devtools/patches.py: note: In member "everyone" of class "StableMentions":
- devtools/patches.py:24:9: error: No return value expected [return-value]
- devtools/patches.py: note: At top level:
- devtools/patches.py:30: error: "type: ignore" comment without error code (consider "type: ignore[no-untyped-def]" instead) [ignore-without-code]
- devtools/patches.py: note: In function "roles":
- devtools/patches.py:32:9: error: No return value expected [return-value]
- devtools/patches.py: note: In member "roles" of class "StableMentions":
- devtools/patches.py:32:9: error: No return value expected [return-value]
- devtools/patches.py: note: At top level:
- devtools/patches.py:39:1: error: Need type annotation for "patch_bot_restore" (hint: "patch_bot_restore: Optional[<type>] = ...") [var-annotated]
- devtools/patches.py: note: In function "patch_bot":
- devtools/patches.py:42:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- devtools/patches.py:46:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- devtools/patches.py:47:9: error: No return value expected [return-value]
- devtools/patches.py:49:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- devtools/patches.py:53:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- devtools/patches.py:54:5: error: Expression has type "Untyped" [no-any-expr]
- devtools/patches.py:54:5: error: Usage of untyped name "allowed_mentions" in typed context [no-untyped-usage]
- devtools/patches.py:55:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- devtools/patches.py:55:47: error: Expression type contains "Any" (has type "def (self: Untyped) -> None") [no-any-expr]
- devtools/patches.py:55:55: error: Expression type contains "Any" (has type "def (self: Untyped, val: Untyped) -> None") [no-any-expr]
- devtools/patches.py: note: In function "remove_patches":
- devtools/patches.py:58:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- devtools/patches.py:60:8: error: Expression type contains "Any" (has type "Any (unannotated) | None") [no-any-expr]
- devtools/patches.py:61:17: error: Expression has type "Any (from unimported type)" [no-any-expr]
- devtools/patches.py:61:42: error: Expression has type "Any (unannotated)" [no-any-expr]
- devtools/patches.py:62:5: error: Expression has type "Untyped" [no-any-expr]
- devtools/patches.py:62:5: error: Usage of untyped name "allowed_mentions" in typed context [no-untyped-usage]
- devtools/patches.py:62:28: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/__init__.py: note: In function "setup":
- suggestionbox/__init__.py:25:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- suggestionbox/__init__.py:26:5: error: Expression has type "Untyped" [no-any-expr]
- suggestionbox/__init__.py:26:31: error: Expression has type "Untyped" [no-any-expr]
- scheduler/checks.py: note: In function "can_run_command":
- scheduler/checks.py:21:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- scheduler/checks.py:23:9: error: Usage of untyped name "command" in typed context [no-untyped-usage]
- scheduler/checks.py:23:19: error: Expression has type "Untyped" [no-any-expr]
- scheduler/checks.py:24:16: error: Expression has type "Untyped" [no-any-expr]
- scheduler/checks.py:25:13: error: No return value expected [return-value]
- scheduler/checks.py:28:23: error: Expression has type "Any (unannotated)" [no-any-expr]
- scheduler/checks.py:28:29: error: Expression has type "Untyped" [no-any-expr]
- scheduler/checks.py:29:17: error: Expression has type "Untyped" [no-any-expr]
- scheduler/checks.py:31:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- scheduler/checks.py:34:9: error: Returning Any from function declared to return "None" [no-any-return]
- scheduler/checks.py:34:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- scheduler/checks.py:36:5: error: Returning Any from function declared to return "None" [no-any-return]
- scheduler/checks.py:36:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- scheduler/checks.py:36:27: error: Expression type contains "Any" (has type "def (ctx: Untyped) -> Coroutine[Any, Any, None]") [no-any-expr]
- rss/converters.py: note: In function "_tristate":
- rss/converters.py:30:11: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py: note: In member "__init__" of class "TriState":
- rss/converters.py:38:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rss/converters.py:39:9: error: Usage of untyped name "state" in typed context [no-untyped-usage]
- rss/converters.py:39:22: error: Expression has type "Untyped" [no-any-expr]
- rss/converters.py: note: In member "convert" of class "TriState":
- rss/converters.py:42:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rss/converters.py: note: In class "TriState":
- rss/converters.py:42:5: error: Type of decorated function contains type "Any" ("def (cls: type[TriState], ctx: Untyped, arg: Untyped) -> Coroutine[Any, Any, None]") [no-any-decorated]
- rss/converters.py: note: In member "convert" of class "TriState":
- rss/converters.py:43:9: error: No return value expected [return-value]
- rss/converters.py:43:30: error: Expression has type "Untyped" [no-any-expr]
- rss/converters.py: note: At top level:
- rss/converters.py:46:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py: note: In class "NonEveryoneRole":
- rss/converters.py:49:23: error: Class cannot subclass "Role" (has type "Any") [no-subclass-any]
- rss/converters.py:49:23: error: Base type Role becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rss/converters.py: note: In member "convert" of class "NonEveryoneRole":
- rss/converters.py:51:5: error: Return type becomes "Coroutine[Any, Any, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- rss/converters.py:51:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rss/converters.py: note: In class "NonEveryoneRole":
- rss/converters.py:51:5: error: Type of decorated function contains type "Any" ("def (cls: type[NonEveryoneRole], ctx: Any (from unimported type), arg: str) -> Coroutine[Any, Any, Any (from unimported type)]") [no-any-decorated]
- rss/converters.py: note: In member "convert" of class "NonEveryoneRole":
- rss/converters.py:52:9: error: Type of variable becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rss/converters.py:52:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py:52:36: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py:52:60: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py:53:12: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py:54:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py:55:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rss/converters.py: note: In member "convert" of class "FieldAndTerm":
- rss/converters.py:63:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rss/converters.py: note: In class "FieldAndTerm":
- rss/converters.py:63:5: error: Type of decorated function contains type "Any" ("def (cls: type[FieldAndTerm], ctx: Any (from unimported type), arg: str) -> Coroutine[Any, Any, FieldAndTerm]") [no-any-decorated]
- rss/converters.py: note: In member "convert" of class "FieldAndTerm":
- rss/converters.py:68:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/exceptions.py: note: In member "__init__" of class "MissingRequirementsException":
- rolemanagement/exceptions.py:27:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rolemanagement/exceptions.py:28:25: error: Expression has type "Untyped" [no-any-expr]
- rolemanagement/exceptions.py:28:25: error: Expression type contains "Any" (has type "Any (unannotated) | list[Any (unannotated)]") [no-any-expr]
- rolemanagement/exceptions.py:28:37: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- rolemanagement/exceptions.py:29:25: error: Expression has type "Untyped" [no-any-expr]
- rolemanagement/exceptions.py:29:25: error: Expression type contains "Any" (has type "Any (unannotated) | list[Any (unannotated)]") [no-any-expr]
- rolemanagement/exceptions.py:29:37: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- rolemanagement/exceptions.py: note: In member "__init__" of class "ConflictingRoleException":
- rolemanagement/exceptions.py:34:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rolemanagement/exceptions.py:35:26: error: Expression has type "Untyped" [no-any-expr]
- rolemanagement/exceptions.py:35:26: error: Expression type contains "Any" (has type "Any (unannotated) | list[Any (unannotated)]") [no-any-expr]
- rolemanagement/exceptions.py:35:39: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- rolemanagement/converters.py:22:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py: note: In member "error" of class "NoExitParser":
- rolemanagement/converters.py:38:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rolemanagement/converters.py:38:5: error: Return type "None" of "error" incompatible with return type "Never" in supertype "ArgumentParser" [override]
- rolemanagement/converters.py:38:5: error: Method "error" is not using @override but is overriding a method in class "argparse.ArgumentParser" [explicit-override]
- rolemanagement/converters.py:38:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- rolemanagement/converters.py:39:15: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py: note: In function "add_bool_arg":
- rolemanagement/converters.py:42:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- rolemanagement/converters.py:46:27: error: Expression type contains "Any" (has type "dict[str, Any (unannotated)]") [no-any-expr]
- rolemanagement/converters.py:46:28: error: Expression type contains "Any" (has type "(str, Untyped)") [no-any-expr]
- rolemanagement/converters.py:46:34: error: Expression has type "Untyped" [no-any-expr]
- rolemanagement/converters.py:47:5: error: No return value expected [return-value]
- rolemanagement/converters.py: note: In class "RoleSyntaxConverter":
- rolemanagement/converters.py:51:5: error: Type of variable becomes "dict[str, list[Any (from unimported type)]]" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In member "convert" of class "RoleSyntaxConverter":
- rolemanagement/converters.py:54:5: error: Argument 1 to "convert" becomes "type[RoleSyntaxConverter]" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py:54:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In class "RoleSyntaxConverter":
- rolemanagement/converters.py:54:5: error: Type of decorated function contains type "Any" ("def (cls: type[RoleSyntaxConverter], ctx: Any (from unimported type), argument: str) -> Coroutine[Any, Any, None]") [no-any-decorated]
- rolemanagement/converters.py: note: In member "convert" of class "RoleSyntaxConverter":
- rolemanagement/converters.py:58:69: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:59:75: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:61:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:63:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:65:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:65:16: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:65:36: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:65:36: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:66:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:69:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:69:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:69:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:69:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:69:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:69:56: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:69:61: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:69:73: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:69:73: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:71:9: error: No return value expected [return-value]
- rolemanagement/converters.py:71:16: error: Expression type contains "Any" (has type "RoleSyntaxConverter") [no-any-expr]
- rolemanagement/converters.py:71:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py: note: In class "EmojiRolePairConverter":
- rolemanagement/converters.py:75:5: error: Type of variable becomes "dict[str, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In member "convert" of class "EmojiRolePairConverter":
- rolemanagement/converters.py:78:5: error: Argument 1 to "convert" becomes "type[EmojiRolePairConverter]" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py:78:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In class "EmojiRolePairConverter":
- rolemanagement/converters.py:78:5: error: Type of decorated function contains type "Any" ("def (cls: type[EmojiRolePairConverter], ctx: Any (from unimported type), argument: str) -> Coroutine[Any, Any, None]") [no-any-decorated]
- rolemanagement/converters.py: note: In member "convert" of class "EmojiRolePairConverter":
- rolemanagement/converters.py:82:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:84:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:86:9: error: Type of variable becomes "dict[str, Any (from unimported type)]" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py:92:35: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- rolemanagement/converters.py:93:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:97:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:97:30: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:97:53: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:99:17: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- rolemanagement/converters.py:99:38: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:103:9: error: No return value expected [return-value]
- rolemanagement/converters.py:103:16: error: Expression type contains "Any" (has type "EmojiRolePairConverter") [no-any-expr]
- rolemanagement/converters.py:103:20: error: Expression type contains "Any" (has type "dict[str, Any (from unimported type)]") [no-any-expr]
- rolemanagement/converters.py: note: At top level:
- rolemanagement/converters.py:127:13: error: Implicit generic "Any". Use "typing.Dict" and specify generic parameters [type-arg]
- rolemanagement/converters.py: note: In class "ComplexActionConverter":
- rolemanagement/converters.py:127:13: error: Implicit generic "Any". Use "typing.Dict" and specify generic parameters [type-arg]
- rolemanagement/converters.py: note: At top level:
- rolemanagement/converters.py:127:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-type-arg for more info
- rolemanagement/converters.py: note: In member "convert" of class "ComplexActionConverter":
- rolemanagement/converters.py:130:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In class "ComplexActionConverter":
- rolemanagement/converters.py:130:5: error: Type of decorated function contains type "Any" ("def (cls: type[ComplexActionConverter], ctx: Any (from unimported type), argument: str) -> Coroutine[Any, Any, None]") [no-any-decorated]
- rolemanagement/converters.py: note: In member "convert" of class "ComplexActionConverter":
- rolemanagement/converters.py:133:73: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:134:73: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:135:75: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:139:79: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:140:78: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:141:78: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:142:69: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:143:75: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:161:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:163:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:165:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:165:16: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:165:36: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:165:36: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:166:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:169:13: error: Expression type contains "Any" (has type "(Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, bool, bool, bool, Any, Any)") [no-any-expr]
- rolemanagement/converters.py:170:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:170:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:171:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:171:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:172:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:172:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:173:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:173:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:174:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:174:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:175:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:175:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:176:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:176:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:177:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:177:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:178:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:178:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:179:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:179:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:180:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:180:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:181:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:181:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:182:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:182:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:183:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:183:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:184:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:184:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:187:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:190:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:190:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:190:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:190:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:190:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:190:56: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:190:61: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:190:73: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:190:73: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:193:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:193:16: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:195:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:195:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:195:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:195:55: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:195:60: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:195:60: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:199:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:199:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:199:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:200:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:201:26: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:201:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:203:19: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:203:20: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:203:36: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:203:69: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:203:69: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:204:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:206:9: error: No return value expected [return-value]
- rolemanagement/converters.py:206:16: error: Expression type contains "Any" (has type "ComplexActionConverter") [no-any-expr]
- rolemanagement/converters.py:206:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py: note: At top level:
- rolemanagement/converters.py:229:13: error: Implicit generic "Any". Use "typing.Dict" and specify generic parameters [type-arg]
- rolemanagement/converters.py: note: In class "ComplexSearchConverter":
- rolemanagement/converters.py:229:13: error: Implicit generic "Any". Use "typing.Dict" and specify generic parameters [type-arg]
- rolemanagement/converters.py: note: In member "convert" of class "ComplexSearchConverter":
- rolemanagement/converters.py:232:5: error: Argument 2 to "convert" becomes "Any (from unimported type)" due to an unfollowed import [no-any-unimported]
- rolemanagement/converters.py: note: In class "ComplexSearchConverter":
- rolemanagement/converters.py:232:5: error: Type of decorated function contains type "Any" ("def (cls: type[ComplexSearchConverter], ctx: Any (from unimported type), argument: str) -> Coroutine[Any, Any, None]") [no-any-decorated]
- rolemanagement/converters.py: note: In member "convert" of class "ComplexSearchConverter":
- rolemanagement/converters.py:234:73: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:235:73: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:236:75: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:240:79: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:241:78: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:242:78: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:262:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:264:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:267:13: error: Expression type contains "Any" (has type "(Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, bool, bool, bool, Any, Any)") [no-any-expr]
- rolemanagement/converters.py:268:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:268:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:269:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:269:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:270:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:270:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:271:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:271:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:272:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:272:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:273:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:273:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:274:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:274:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:275:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:275:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:276:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:276:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:277:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:277:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:278:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:278:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:279:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:279:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:280:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:280:22: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:281:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:281:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:282:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:282:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:285:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:288:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:288:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:288:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:288:27: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:288:33: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:288:56: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:288:61: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:288:73: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:288:73: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:291:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:291:16: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:293:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:293:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:293:32: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:293:55: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/converters.py:293:60: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:293:60: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:297:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:297:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:297:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- rolemanagement/converters.py:298:17: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:299:26: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- rolemanagement/converters.py:299:26: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:301:19: error: Expression has type "Any" [no-any-expr]
- rolemanagement/converters.py:301:20: error: Expression has type "Any" [no-any-expr]
... (truncated 6840 lines) ...
mkosi (https://github.com/systemd/mkosi): 3.42x faster (33.4s -> 9.8s in a single noisy sample)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/typeshed/stdlib/argparse.pyi:50: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.9.0+dev.a252e2a25e0fb702e229ed34cf9bc4ab1cd8a984
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 107, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 216, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 199, in build
+ result = _build(
+ File "/build.py", line 277, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3090, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3490, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3585, in process_stale_scc
+ mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+ File "/semanal_main.py", line 93, in semantic_analysis_for_scc
+ process_top_levels(graph, scc, patches)
+ File "/semanal_main.py", line 220, in process_top_levels
+ deferred, incomplete, progress = semantic_analyze_target(
+ File "/semanal_main.py", line 351, in semantic_analyze_target
+ analyzer.refresh_partial(
+ File "/semanal.py", line 630, in refresh_partial
+ self.refresh_top_level(node)
+ File "/semanal.py", line 647, in refresh_top_level
+ self.accept(d)
+ File "/semanal.py", line 7301, in accept
+ node.accept(self)
+ File "/nodes.py", line 1357, in accept
+ return visitor.visit_assignment_stmt(self)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 3288, in visit_assignment_stmt
+ elif self.newtype_analyzer.process_newtype_declaration(s):
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal_newtype.py", line 144, in process_newtype_declaration
+ fallback=self.api.named_type("typing.Callable"),
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/semanal.py", line 6623, in named_type
+ assert isinstance(node, TypeInfo)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AssertionError:
- mkosi/types.py:18:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/types.py:18:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-explicit for more info
- mkosi/versioncomp.py: note: In member "__eq__" of class "GenericVersion":
- mkosi/versioncomp.py:145:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/versioncomp.py:145:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- mkosi/versioncomp.py: note: In member "__str__" of class "GenericVersion":
- mkosi/versioncomp.py:159:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/sandbox.py: note: In function "unshare":
- mkosi/sandbox.py:102:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:102:8: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info
- mkosi/sandbox.py: note: In function "statfs":
- mkosi/sandbox.py:112:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "mount":
- mkosi/sandbox.py:122:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "umount2":
- mkosi/sandbox.py:127:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "cap_permitted_to_ambient":
- mkosi/sandbox.py:143:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:146:30: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:147:30: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:149:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:152:17: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:152:46: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:163:12: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:163:39: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "seccomp_suppress_chown":
- mkosi/sandbox.py:185:8: error: Condition is always false [redundant-expr]
- mkosi/sandbox.py:185:8: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- mkosi/sandbox.py:201:15: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:205:18: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:206:47: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:206:72: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:208:37: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:210:36: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "join_new_session_keyring":
- mkosi/sandbox.py:215:8: error: Condition is always false [redundant-expr]
- mkosi/sandbox.py:221:15: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:222:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "mount_rbind":
- mkosi/sandbox.py:237:14: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:240:14: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:242:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:259:17: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:259:36: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:269:17: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:269:48: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:271:12: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:282:17: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:282:33: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:292:17: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:292:45: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:294:12: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:297:18: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In function "become_user":
- mkosi/sandbox.py:321:13: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:322:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:328:21: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:329:22: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:346:18: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:347:18: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py: note: In member "__hash__" of class "BindOperation":
- mkosi/sandbox.py:454:5: error: Method "__hash__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/sandbox.py: note: In member "__eq__" of class "BindOperation":
- mkosi/sandbox.py:457:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "BindOperation":
- mkosi/sandbox.py:460:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "ProcOperation":
- mkosi/sandbox.py:489:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "DevOperation":
- mkosi/sandbox.py:502:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "TmpfsOperation":
- mkosi/sandbox.py:540:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "DirOperation":
- mkosi/sandbox.py:550:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "SymlinkOperation":
- mkosi/sandbox.py:566:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "WriteOperation":
- mkosi/sandbox.py:589:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In member "execute" of class "OverlayOperation":
- mkosi/sandbox.py:612:5: error: Method "execute" is not using @override but is overriding a method in class "mkosi.sandbox.FSOperation" [explicit-override]
- mkosi/sandbox.py: note: In function "main":
- mkosi/sandbox.py:832:8: error: Expression has type "Any" [no-any-expr]
- mkosi/sandbox.py:860:8: error: Expression has type "Any" [no-any-expr]
- mkosi/log.py: note: In function "terminal_is_dumb":
- mkosi/log.py:19:12: error: Expression type contains "Any" (has type "bool | Any") [no-any-expr]
- mkosi/log.py:19:40: error: Expression type contains "Any" (has type "bool | Any") [no-any-expr]
- mkosi/log.py: note: At top level:
- mkosi/log.py:60:2: error: Expression type contains "Any" (has type "def (text: str, text2: str | None=...) -> Iterator[list[Any]]") [no-any-expr]
- mkosi/log.py: note: In function "complete_step":
- mkosi/log.py:61:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/log.py: note: At top level:
- mkosi/log.py:61:1: error: Type of decorated function contains type "Any" ("def (text: str, text2: str | None=...) -> _GeneratorContextManager[list[Any]]") [no-any-decorated]
- mkosi/log.py:61:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-decorated for more info
- mkosi/log.py: note: In function "complete_step":
- mkosi/log.py:68:9: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/log.py:69:15: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- mkosi/log.py:75:32: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- mkosi/log.py: note: In member "__init__" of class "Formatter":
- mkosi/log.py:79:5: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/log.py:90:32: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- mkosi/log.py:90:40: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mkosi/log.py: note: In member "format" of class "Formatter":
- mkosi/log.py:92:5: error: Method "format" is not using @override but is overriding a method in class "logging.Formatter" [explicit-override]
- mkosi/log.py: note: In function "log_setup":
- mkosi/log.py:101:34: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py: note: In function "dictify":
- mkosi/util.py:34:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/util.py:35:5: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/util.py:36:24: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- mkosi/util.py:36:32: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mkosi/util.py:38:12: error: Expression type contains "Any" (has type "(...) -> dict[T@dictify, V@dictify] & _Wrapped[(...) -> Iterator[(T@dictify, V@dictify)]]") [no-any-expr]
- mkosi/util.py:38:37: error: Expression type contains "Any" (has type "def (*args: Any, **kwargs: Any) -> dict[T@dictify, V@dictify]") [no-any-expr]
- mkosi/util.py:38:46: error: Expression type contains "Any" (has type "(...) -> Iterator[(T@dictify, V@dictify)]") [no-any-expr]
- mkosi/util.py: note: In function "tuplify":
- mkosi/util.py:41:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/util.py:42:5: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/util.py:43:25: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- mkosi/util.py:43:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mkosi/util.py:45:12: error: Expression type contains "Any" (has type "(...) -> tuple[T@tuplify, ...] & _Wrapped[(...) -> Iterable[T@tuplify]]") [no-any-expr]
- mkosi/util.py:45:37: error: Expression type contains "Any" (has type "def (*args: Any, **kwargs: Any) -> tuple[T@tuplify, ...]") [no-any-expr]
- mkosi/util.py:45:46: error: Expression type contains "Any" (has type "(...) -> Iterable[T@tuplify]") [no-any-expr]
- mkosi/util.py: note: At top level:
- mkosi/util.py:66:2: error: Expression type contains "Any" (has type "def [T, V] (f: (...) -> Iterator[(T, V)]) -> (...) -> dict[T, V]") [no-any-expr]
- mkosi/util.py:67:1: error: Type of decorated function contains type "Any" ("(...) -> dict[str, str]") [no-any-decorated]
- mkosi/util.py:151:2: error: Expression type contains "Any" (has type "def (env: Mapping[str, Any]) -> Iterator[None]") [no-any-expr]
- mkosi/util.py: note: In function "scopedenv":
- mkosi/util.py:152:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/util.py: note: At top level:
- mkosi/util.py:152:1: error: Type of decorated function contains type "Any" ("def (env: Mapping[str, Any]) -> _GeneratorContextManager[None]") [no-any-decorated]
- mkosi/util.py: note: In function "scopedenv":
- mkosi/util.py:154:19: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/util.py: note: In member "__str__" of class "StrEnum":
- mkosi/util.py:168:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/util.py:169:27: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py: note: In class "StrEnum":
- mkosi/util.py:174:5: error: Method "_generate_next_value_" is not using @override but is overriding a method in class "enum.Enum" [explicit-override]
- mkosi/util.py: note: In function "resource_path":
- mkosi/util.py:194:10: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py:198:13: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py:198:13: error: Expression type contains "Any" (has type "Any | bool") [no-any-expr]
- mkosi/util.py:199:30: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py:201:13: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py:203:15: error: Expression has type "Any" [no-any-expr]
- mkosi/util.py: note: In function "try_or":
- mkosi/util.py:219:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/distributions/__init__.py: note: In member "installer" of class "Distribution":
- mkosi/distributions/__init__.py:163:27: error: Argument 1 to "issubclass" has incompatible type "object"; expected "type" [arg-type]
- mkosi/run.py: note: In function "uncaught_exception_handler":
- mkosi/run.py:83:13: error: Expression type contains "Any" (has type "Any | bool") [no-any-expr]
- mkosi/run.py:84:17: error: Expression has type "Any" [no-any-expr]
- mkosi/run.py:85:21: error: Expression has type "Any" [no-any-expr]
- mkosi/run.py:86:42: error: Expression has type "Any" [no-any-expr]
- mkosi/run.py: note: In function "fork_and_wait":
- mkosi/run.py:98:1: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/run.py:103:21: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- mkosi/run.py:103:29: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mkosi/run.py: note: In function "run":
- mkosi/run.py:166:38: error: Expression type contains "Any" (has type "int | Any") [no-any-expr]
- mkosi/run.py: note: In function "spawn":
- mkosi/run.py:297:19: error: Expression has type "Any" [no-any-expr]
- mkosi/run.py: note: In member "__init__" of class "AsyncioThread":
- mkosi/run.py:346:5: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/run.py:349:23: error: Expression type contains "Any" (has type "Awaitable[Any]") [no-any-expr]
- mkosi/run.py:352:27: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- mkosi/run.py:352:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- mkosi/run.py: note: In member "run" of class "AsyncioThread":
- mkosi/run.py:354:5: error: Method "run" is not using @override but is overriding a method in class "threading.Thread" [explicit-override]
- mkosi/run.py: note: In function "run":
- mkosi/run.py:359:19: error: Expression type contains "Any" (has type "Awaitable[Any]") [no-any-expr]
- mkosi/run.py: note: In member "cancel" of class "AsyncioThread":
- mkosi/run.py:373:9: error: Expression type contains "Any" (has type "Task[Any]") [no-any-expr]
- mkosi/run.py:373:21: error: Expression type contains "Any" (has type "set[Task[Any]]") [no-any-expr]
- mkosi/run.py:374:39: error: Expression type contains "Any" (has type "Task[Any]") [no-any-expr]
- mkosi/run.py:374:39: error: Expression type contains "Any" (has type "_NamedCallable & (msg: Any | None=...) -> bool") [no-any-expr]
- mkosi/user.py:102:12: error: Name "count" may be undefined [possibly-undefined]
- mkosi/user.py:102:12: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-possibly-undefined for more info
- mkosi/user.py:108:16: error: Name "start" may be undefined [possibly-undefined]
- mkosi/partition.py: note: In member "from_dict" of class "Partition":
- mkosi/partition.py:21:5: error: Explicit "Any" is not allowed [no-any-explicit]
- mkosi/partition.py: note: In class "Partition":
- mkosi/partition.py:21:5: error: Type of decorated function contains type "Any" ("def (cls: type[Partition], dict: Mapping[str, Any]) -> Partition") [no-any-decorated]
- mkosi/partition.py: note: In member "from_dict" of class "Partition":
- mkosi/partition.py:23:18: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/partition.py:23:18: error: Expression has type "Any" [no-any-expr]
- mkosi/partition.py:24:18: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/partition.py:24:18: error: Expression has type "Any" [no-any-expr]
- mkosi/partition.py:25:24: error: Expression has type "Any" [no-any-expr]
- mkosi/partition.py:25:36: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py:25:46: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/partition.py:25:46: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py:28:22: error: Expression has type "Any" [no-any-expr]
- mkosi/partition.py:28:51: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py:28:52: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py:28:57: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/partition.py:28:57: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py:28:85: error: Expression has type "Any" [no-any-expr]
- mkosi/partition.py:30:22: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- mkosi/partition.py:30:22: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- mkosi/partition.py: note: In function "find_partitions":
- mkosi/partition.py:45:33: error: Argument 1 to "from_dict" of "Partition" has incompatible type "dict[str, _JsonType] | list[_JsonType] | float | int | str | None | Any (from error)"; expected "Mapping[str, Any]" [arg-type]
- mkosi/partition.py:45:45: error: Item "float" of "dict[str, _JsonType] | list[_JsonType] | float | int | str | None" has no attribute "__iter__" (not iterable) [union-attr]
- mkosi/partition.py:45:45: error: Item "int" of "dict[str, _JsonType] | list[_JsonType] | float | int | str | None" has no attribute "__iter__" (not iterable) [union-attr]
- mkosi/partition.py:45:45: error: Item "None" of "dict[str, _JsonType] | list[_JsonType] | float | int | str | None" has no attribute "__iter__" (not iterable) [union-attr]
- mkosi/partition.py:45:45: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-union-attr for more info
- mkosi/partition.py: note: In function "finalize_roothash":
- mkosi/partition.py:61:23: error: Left operand of "or" is always false [redundant-expr]
- mkosi/partition.py:63:24: error: Left operand of "or" is always false [redundant-expr]
- mkosi/kmod.py: note: In function "filter_kernel_modules":
- mkosi/kmod.py:32:8: error: "include" has type "Iterable[str]" which can always be true in boolean context. Consider using "Collection[str]" instead. [truthy-iterable]
- mkosi/kmod.py:32:8: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-truthy-iterable for more info
- mkosi/kmod.py:39:8: error: "exclude" has type "Iterable[str]" which can always be true in boolean context. Consider using "Collection[str]" instead. [truthy-iterable]
- mkosi/kmod.py: note: In function "gen_required_kernel_modules":
- mkosi/kmod.py:171:8: error: "exclude" has type "Iterable[str]" which can always be true in boolean context. Consider using "Collection[str]" instead. [truthy-iterable]
- mkosi/kmod.py:171:19: error: "glob" returns "Generator[Path, None, None]" which does not implement __bool__ or __len__ so it could always be true in boolean context [truthy-bool]
- mkosi/kmod.py:171:19: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-truthy-bool for more info
- mkosi/kmod.py: note: In function "process_kernel_modules":
- mkosi/kmod.py:213:12: error: "exclude" has type "Iterable[str]" which can always be true in boolean context. Consider using "Collection[str]" instead. [truthy-iterable]
- mkosi/kmod.py:219:10: error: Expression type contains "Any" (has type "_GeneratorContextManager[list[Any]]") [no-any-expr]
- mkosi/config.py: note: In member "__str__" of class "ConfigTree":
- mkosi/config.py:143:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- mkosi/config.py: note: In function "config_default_compression":
- mkosi/config.py:811:8: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:812:12: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:812:62: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:816:10: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py: note: In function "config_default_output":
- mkosi/config.py:823:14: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:823:14: error: Expression type contains "Any" (has type "Any | str") [no-any-expr]
- mkosi/config.py:823:33: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:825:8: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:826:9: error: Expression type contains "Any" (has type "Any | str") [no-any-expr]
- mkosi/config.py:826:22: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:826:22: note: Left operand is of type "Any | str"
- mkosi/config.py:826:22: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-operator for more info
- mkosi/config.py:828:12: error: Expression type contains "Any" (has type "Any | str") [no-any-expr]
- mkosi/config.py: note: In function "config_default_release":
- mkosi/config.py:847:8: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:847:8: error: Expression type contains "Any" (has type "Any | bool") [no-any-expr]
- mkosi/config.py:850:22: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py: note: In function "config_default_repository_key_fetch":
- mkosi/config.py:866:8: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:867:27: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:869:8: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:871:13: error: Expression type contains "Any" (has type "False | Any") [no-any-expr]
- mkosi/config.py:871:33: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:872:17: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:878:13: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:879:17: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:881:12: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py: note: In function "config_default_source_date_epoch":
- mkosi/config.py:886:5: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:886:16: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:887:28: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py: note: At top level:
- mkosi/config.py:891:43: error: Name "s" may be undefined [possibly-undefined]
- mkosi/config.py: note: In function "config_default_proxy_url":
- mkosi/config.py:897:5: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:897:16: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:898:19: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:899:12: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py:903:12: error: Expression has type "Any" [no-any-expr]
- mkosi/config.py: note: At top level:
- mkosi/config.py:949: error: "type: ignore" comment without error code (consider "type: ignore[assignment]" instead) [ignore-without-code]
- mkosi/config.py: note: In function "config_match_version":
- mkosi/config.py:984:5: error: Expression type contains "Any" (has type "(str, def (_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT, _SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT) -> Any)") [no-any-expr]
- mkosi/config.py:984:5: error: Expression type contains "Any" (has type "def (_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT, _SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT) -> Any") [no-any-expr]
- mkosi/config.py:984:26: error: Expression type contains "Any" (has type "dict[str, def (_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT, _SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT) -> Any]") [no-any-expr]
- mkosi/config.py:984:26: error: Expression type contains "Any" (has type "dict_items[str, def (_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT, _SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT) -> Any]") [no-any-expr]
- mkosi/config.py:985:9: error: Expression type contains "Any" (has type "(str, def (object, object) -> Any)") [no-any-expr]
- mkosi/config.py:985:15: error: Expression type contains "Any" (has type "def (object, object) -> Any") [no-any-expr]
- mkosi/config.py:986:9: error: Expression type contains "Any" (has type "(str, def (object, object) -> Any)") [no-any-expr]
- mkosi/config.py:986:15: error: Expression type contains "Any" (has type "def (object, object) -> Any") [no-any-expr]```</details>
... (truncated 65510 lines) ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.