Skip to content
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

set typeCheckingMode to all by default #75

Merged
merged 7 commits into from
Feb 11, 2024
Merged

Conversation

DetachHead
Copy link
Owner

fixes #74

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@DetachHead DetachHead force-pushed the default-typecheckingmode branch from 377e818 to 5eb7393 Compare February 8, 2024 05:05

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Feb 8, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

pyp (https://github.com/hauntsaninja/pyp)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:25 - error: This type is deprecated as of Python 3.9; use "dict" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:31 - error: This type is deprecated as of Python 3.9; use "collections.abc.Iterator" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:41 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:47 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:57 - error: This type is deprecated as of Python 3.9; use "set" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:12:62 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:26:24 - error: This type is deprecated as of Python 3.9; use "collections.abc.Iterable" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:28:12 - error: Argument type is partially unknown
+     Argument corresponds to parameter "__obj" in function "len"
+     Argument type is "tuple[Unknown, ...]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:29:16 - error: Argument type is unknown
+     Argument corresponds to parameter "values" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:29:24 - error: Argument type is unknown
+     Argument corresponds to parameter "sep" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:29:24 - error: Argument type is unknown
+     Argument corresponds to parameter "end" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:29:24 - error: Argument type is unknown
+     Argument corresponds to parameter "file" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:29:24 - error: Argument type is unknown
+     Argument corresponds to parameter "flush" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:31:5 - error: Type of "x" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:33:13 - error: Type of "k" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:33:16 - error: Type of "v" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:34:28 - error: Argument type is unknown
+     Argument corresponds to parameter "values" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:34:33 - error: Argument type is unknown
+     Argument corresponds to parameter "sep" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:34:33 - error: Argument type is unknown
+     Argument corresponds to parameter "end" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:34:33 - error: Argument type is unknown
+     Argument corresponds to parameter "file" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:34:33 - error: Argument type is unknown
+     Argument corresponds to parameter "flush" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:36:13 - error: Type of "i" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:37:19 - error: Argument type is unknown
+     Argument corresponds to parameter "values" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:37:24 - error: Argument type is unknown
+     Argument corresponds to parameter "sep" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:37:24 - error: Argument type is unknown
+     Argument corresponds to parameter "end" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:37:24 - error: Argument type is unknown
+     Argument corresponds to parameter "file" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:37:24 - error: Argument type is unknown
+     Argument corresponds to parameter "flush" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:39:15 - error: Argument type is partially unknown
+     Argument corresponds to parameter "values" in function "print"
+     Argument type is "Unknown | str" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:39:20 - error: Argument type is unknown
+     Argument corresponds to parameter "sep" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:39:20 - error: Argument type is unknown
+     Argument corresponds to parameter "end" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:39:20 - error: Argument type is unknown
+     Argument corresponds to parameter "file" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:39:20 - error: Argument type is unknown
+     Argument corresponds to parameter "flush" in function "print" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:53:9 - error: Method "__init__" does not call the method of the same name in parent class (reportMissingSuperCall)
+   /tmp/mypy_primer/projects/pyp/pyp.py:54:23 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:54:28 - error: This type is deprecated as of Python 3.9; use "set" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:55:37 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:57:25 - error: This type is deprecated as of Python 3.9; use "set" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:58:32 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:64:36 - error: This type is deprecated as of Python 3.9; use "set" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:69:17 - error: Type of "item" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pyp/pyp.py:75:9 - error: Method "generic_visit" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:76:24 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:84:9 - error: Method "visit_Name" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:93:9 - error: Method "visit_Global" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:96:9 - error: Method "visit_Nonlocal" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:100:9 - error: Method "visit_AugAssign" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:107:9 - error: Method "visit_NamedExpr" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:119:9 - error: Method "visit_alias" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:125:9 - error: Method "visit_ImportFrom" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:130:9 - error: Method "visit_ClassDef" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:137:9 - error: Result of call expression is of type "Set[str]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/pyp/pyp.py:141:54 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/pyp/pyp.py:152:9 - error: Result of call expression is of type "Set[str]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/pyp/pyp.py:154:9 - error: Method "visit_FunctionDef" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:158:9 - error: Method "visit_AsyncFunctionDef" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:162:9 - error: Method "visit_Lambda" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:165:9 - error: Method "visit_ExceptHandler" is not marked as override but is overriding a method in class "NodeVisitor" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/pyp/pyp.py:182:9 - error: Result of call expression is of type "Set[str]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/pyp/pyp.py:183:9 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/pyp/pyp.py:240:9 - error: Method "__init__" does not call the method of the same name in parent class (reportMissingSuperCall)

... (truncated 206 lines) ...

PyWinCtl (https://github.com/Kalmat/PyWinCtl)
+ /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/__init__.py
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/__init__.py: error: Cycle detected in import chain
+     /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/__init__.py
+     /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_main.py (reportImportCycles)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:20 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:36 - error: This type is deprecated as of Python 3.9; use "collections.abc.Callable" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:46 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:53 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:59 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:12:66 - error: This type is deprecated as of Python 3.9; use "collections.abc.Iterable" instead (reportDeprecated)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:14:8 - warning: Import "Xlib.display" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:14:8 - error: Import "Xlib.display" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:15:8 - warning: Import "Xlib.protocol" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:15:8 - error: Import "Xlib.protocol" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:16:6 - warning: Import "Xlib.protocol.rq" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:16:6 - error: Import "Xlib.protocol.rq" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:17:8 - warning: Import "Xlib.X" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:17:8 - error: Import "Xlib.X" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:18:8 - warning: Import "Xlib.Xatom" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:18:8 - error: Import "Xlib.Xatom" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:19:8 - warning: Import "Xlib.Xutil" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:19:8 - error: Import "Xlib.Xutil" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:20:8 - warning: Import "Xlib.ext" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:20:8 - error: Import "Xlib.ext" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:21:6 - warning: Import "Xlib.ext" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:21:6 - error: Import "Xlib.ext" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:21:22 - warning: Import "Xlib.ext.randr" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:21:22 - error: Import "Xlib.ext.randr" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:22:8 - warning: Import "Xlib.xobject" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:22:8 - error: Import "Xlib.xobject" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:23:6 - warning: Import "Xlib.xobject.drawable" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:23:6 - error: Import "Xlib.xobject.drawable" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:35:47 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:48:16 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:59:12 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:83:18 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:106:41 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:116:36 - error: Variable "res" is not accessed (reportUnusedVariable)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:118:18 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:126:32 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:126:50 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:137:36 - error: Variable "res" is not accessed (reportUnusedVariable)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:144:24 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:144:30 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:144:35 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:144:117 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:146:16 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:146:21 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:147:12 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:148:15 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:165:48 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:165:53 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:179:44 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:193:40 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:195:68 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:207:8 - error: Unnecessary isinstance call; "int" is always an instance of "int" (reportUnnecessaryIsInstance)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:212:43 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:212:66 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:212:72 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:228:8 - error: Unnecessary isinstance call; "int" is always an instance of "int" (reportUnnecessaryIsInstance)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:240:35 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:240:58 - error: This type is deprecated as of Python 3.10; use "|" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:240:64 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/PyWinCtl/src/ewmhlib/_ewmhlib.py:254:8 - error: Unnecessary isinstance call; "int" is always an instance of "int" (reportUnnecessaryIsInstance)

... (truncated 938 lines) ...

bidict (https://github.com/jab/bidict)
+ /tmp/mypy_primer/projects/bidict/cachegrind.py
+   /tmp/mypy_primer/projects/bidict/cachegrind.py:45:5 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/bidict/cachegrind.py:46:5 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/bidict/cachegrind.py:62:5 - error: Result of call expression is of type "CompletedProcess[bytes]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/bidict/cachegrind.py:117:12 - error: Return type, "dict[Unknown, Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/bidict/bidict/_abc.py
+   /tmp/mypy_primer/projects/bidict/bidict/_abc.py:26:30 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_abc.py:53:33 - error: This type is deprecated as of Python 3.9; use "collections.abc.Iterator" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_abc.py:70:67 - error: This type is deprecated as of Python 3.9; use "collections.abc.MutableMapping" instead (reportDeprecated)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:47:24 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:48:30 - error: This type is deprecated as of Python 3.10; use "| None" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:49:24 - error: This type is deprecated as of Python 3.9; use "collections.abc.Callable" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:51:28 - error: This type is deprecated as of Python 3.9; use "tuple" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:51:36 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:51:51 - error: This type is deprecated as of Python 3.9; use "list" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:55:24 - error: This type is deprecated as of Python 3.9; use "collections.abc.KeysView" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:55:40 - error: This type is deprecated as of Python 3.9; use "collections.abc.ValuesView" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:74:14 - error: This type is deprecated as of Python 3.9; use "collections.abc.MutableMapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:75:14 - error: This type is deprecated as of Python 3.9; use "collections.abc.MutableMapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:78:34 - error: This type is deprecated as of Python 3.9; use "collections.abc.MutableMapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:79:34 - error: This type is deprecated as of Python 3.9; use "collections.abc.MutableMapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:105:50 - error: This type is deprecated as of Python 3.9; use "collections.abc.Reversible" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:145:25 - error: This type is deprecated as of Python 3.9; use "type" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:154:9 - error: Method "__init__" does not call the method of the same name in parent class (reportMissingSuperCall)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:170:9 - error: Method "inverse" is not marked as override but is overriding a method in class "BidirectionalMapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:191:14 - error: Instance variable "_inv" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:192:14 - error: Instance variable "_invweak" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:213:9 - error: Method "__repr__" is not marked as override but is overriding a method in class "object" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:219:9 - error: Method "values" is not marked as override but is overriding a method in class "Mapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:234:9 - error: Method "keys" is not marked as override but is overriding a method in class "Mapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:234:25 - error: This type is deprecated as of Python 3.9; use "collections.abc.KeysView" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:251:9 - error: Method "items" is not marked as override but is overriding a method in class "Mapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:251:26 - error: This type is deprecated as of Python 3.9; use "collections.abc.ItemsView" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:270:9 - error: Method "__contains__" is not marked as override but is overriding a method in class "Mapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:277:9 - error: Method "__eq__" is not marked as override but is overriding a method in class "Mapping[KT@BidictBase, VT@BidictBase]" (reportImplicitOverride)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:292:32 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:303:36 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:303:65 - error: Argument type is partially unknown
+     Argument corresponds to parameter "__obj" in function "len"
+     Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:305:32 - error: Argument type is partially unknown
+     Argument corresponds to parameter "__iterable" in function "__new__"
+     Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, Unknown]]]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:305:50 - error: Argument type is partially unknown
+     Argument corresponds to parameter "__iter2" in function "__new__"
+     Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:422:15 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:422:34 - error: Function calls and mutable objects not allowed within parameter default value expression (reportCallInDefaultInitializer)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:422:51 - error: Function calls and mutable objects not allowed within parameter default value expression (reportCallInDefaultInitializer)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:429:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[Unknown] | Maplike[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:429:35 - error: This type is deprecated as of Python 3.9; use "collections.abc.Iterable" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:440:29 - error: Argument type is partially unknown
+     Argument corresponds to parameter "other" in function "_init_from"
+     Argument type is "BidictBase[KT@BidictBase, VT@BidictBase] | BidictBase[Tuple[KT@BidictBase, VT@BidictBase], Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:505:9 - error: Type of "inv" is partially unknown
+     Type of "inv" is "BidictBase[VT@BidictBase, KT@BidictBase] | BidictBase[Unknown, Tuple[KT@BidictBase, VT@BidictBase]] | Iterator[Tuple[VT@BidictBase, KT@BidictBase]]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:505:15 - error: Type of "inverse" is partially unknown
+     Type of "inverse" is "BidictBase[VT@BidictBase, KT@BidictBase] | BidictBase[Unknown, Tuple[KT@BidictBase, VT@BidictBase]]" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:510:35 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:512:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:512:36 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)
+   /tmp/mypy_primer/projects/bidict/bidict/_base.py:518:36 - error: This type is deprecated as of Python 3.9; use "collections.abc.Mapping" instead (reportDeprecated)

... (truncated 374 lines) ...

@DetachHead DetachHead merged commit 47d6df3 into main Feb 11, 2024
10 checks passed
@DetachHead DetachHead deleted the default-typecheckingmode branch February 11, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make all the default typeCheckingMode
2 participants