DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
http://docs.basedpyright.com/
Other
613 stars 13 forks source link

based callable #415

Closed KotlinIsland closed 3 weeks ago

KotlinIsland commented 3 weeks ago

ported from basedmypy

KotlinIsland commented 3 weeks ago

Perfect for gorgous looks, can merge ASAP

DetachHead commented 3 weeks ago

can you rewrite this in rust please

github-actions[bot] commented 3 weeks ago

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


rclip (https://github.com/yurijmikhalevich/rclip)
+   /tmp/mypy_primer/projects/rclip/rclip/main.py:163:14 - error: Type of parameter "similarity" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/rclip/rclip/model.py:140:95 - error: Type of parameter "x" is partially unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/rclip/rclip/model.py:140:95 - error: Type of parameter "x" is unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/rclip/rclip/utils/helpers.py:70:92 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
- 32 errors, 14 warnings, 0 notes
+ 34 errors, 14 warnings, 0 notes

pyp (https://github.com/hauntsaninja/pyp)
+   /tmp/mypy_primer/projects/pyp/pyp.py:53:44 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyp/pyp.py:241:27 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyp/pyp.py:306:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pyp/tests/test_find_names.py:33:80 - error: "group" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/pyp/tests/test_pyp.py:29:17 - error: Expression of type "bytes" is incompatible with declared type "str | None"
-     Type "bytes" is incompatible with type "str | None"
-       "bytes" is incompatible with "str"
-       "bytes" is incompatible with "None" (reportAssignmentType)
- 8 errors, 0 warnings, 0 notes
+ 9 errors, 0 warnings, 0 notes

alectryon (https://github.com/cpitclaudel/alectryon)
+   /tmp/mypy_primer/projects/alectryon/alectryon/core.py:536:29 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/alectryon/alectryon/core.py:536:49 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/alectryon/alectryon/core.py:536:69 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/alectryon/alectryon/core.py:458:14 - error: No overloads for "check_output" match the provided arguments (reportCallIssue)
-   /tmp/mypy_primer/projects/alectryon/alectryon/core.py:458:58 - error: Argument of type "Unknown | None" cannot be assigned to parameter "binpath" of type "str" in function "resolve_driver"
-     Type "Unknown | None" is incompatible with type "str"
-       "None" is incompatible with "str" (reportArgumentType)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:802:5 - error: "option_spec" overrides symbol of same name in class "Directive"
-     Variable is mutable so its type is invariant
-       Override type "Dict[str, Any]" is not the same as base type "dict[str, (str) -> Any] | None" (reportIncompatibleVariableOverride)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:1120:5 - error: "option_spec" overrides symbol of same name in class "Directive"
-     Variable is mutable so its type is invariant
-       Override type "Dict[str, Any]" is not the same as base type "dict[str, (str) -> Any] | None" (reportIncompatibleVariableOverride)
-     Return type mismatch: base method returns type "Generator[Goal, Unknown, None]", override returns type "list[Unknown]"
+     Return type mismatch: base method returns type "Generator[Goal, Unknown, Unknown]", override returns type "list[Unknown]"
-       "list[Unknown]" is incompatible with "Generator[Goal, Unknown, None]" (reportIncompatibleMethodOverride)
+       "list[Unknown]" is incompatible with "Generator[Goal, Unknown, Unknown]" (reportIncompatibleMethodOverride)
- 33 errors, 37 warnings, 0 notes
+ 32 errors, 37 warnings, 0 notes

pandera (https://github.com/pandera-dev/pandera)
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:106:9 - error: Argument of type "Unknown | None" cannot be assigned to parameter "reason_code" of type "SchemaErrorReason" in function "_parse_schema_error"
-     Type "Unknown | None" is incompatible with type "SchemaErrorReason"
-       "None" is incompatible with "SchemaErrorReason" (reportArgumentType)
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:278:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with return type "(F@check_input) -> F@check_input"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:278:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with return type "(F@check_input) -> F@check_input"
-     Type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with type "(F@check_input) -> F@check_input"
+     Type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with type "(F@check_input) -> F@check_input"
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:426:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> (Coroutine[Any, Any, Unknown] | None)" is incompatible with return type "(F@check_output) -> F@check_output"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:426:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> (Coroutine[Any, Any, Unknown] | Unknown)" is incompatible with return type "(F@check_output) -> F@check_output"
-     Type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> (Coroutine[Any, Any, Unknown] | None)" is incompatible with type "(F@check_output) -> F@check_output"
+     Type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> (Coroutine[Any, Any, Unknown] | Unknown)" is incompatible with type "(F@check_output) -> F@check_output"
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:519:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with return type "(F@check_io) -> F@check_io"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:519:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with return type "(F@check_io) -> F@check_io"
-     Type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with type "(F@check_io) -> F@check_io"
+     Type "(fn: (...) -> Unknown, instance: Unknown | Any, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" is incompatible with type "(F@check_io) -> F@check_io"
- /tmp/mypy_primer/projects/pandera/pandera/dtypes.py
-   /tmp/mypy_primer/projects/pandera/pandera/dtypes.py:408:5 - error: "exact" overrides symbol of same name in class "_Number"
-     Variable is mutable so its type is invariant
-       Override type "bool" is not the same as base type "bool | None" (reportIncompatibleVariableOverride)
-   /tmp/mypy_primer/projects/pandera/pandera/dtypes.py:409:5 - error: "continuous" overrides symbol of same name in class "DataType"
-     Variable is mutable so its type is invariant
-       Override type "bool" is not the same as base type "bool | None" (reportIncompatibleVariableOverride)
+   /tmp/mypy_primer/projects/pandera/pandera/mypy.py:64:36 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/checks.py:42:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/hypotheses.py:39:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/pandera/pandera/api/parsers.py
+   /tmp/mypy_primer/projects/pandera/pandera/api/parsers.py:21:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:178:13 - error: Argument of type "(...) -> Unknown" cannot be assigned to parameter "name" of type "str | None" in function "__init__"
-     Type "(...) -> Unknown" is incompatible with type "str | None"
-       "function" is incompatible with "str"
-       "function" is incompatible with "None" (reportArgumentType)
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/error_handler.py:24:46 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/error_handler.py:97:17 - error: Argument of type "Unknown | None" cannot be assigned to parameter "reason_code" of type "SchemaErrorReason" in function "collect_error"
-     Type "Unknown | None" is incompatible with type "SchemaErrorReason"
-       "None" is incompatible with "SchemaErrorReason" (reportArgumentType)
+ /tmp/mypy_primer/projects/pandera/pandera/api/base/model_components.py
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/model_components.py:72:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/model_components.py:148:73 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/components.py:41:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:70:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:1176:50 - error: Expression of type "dict[str, Any] | dict[Unknown | None, Index | Unknown]" is incompatible with declared type "Dict[str, Any]"
-     Type "dict[str, Any] | dict[Unknown | None, Index | Unknown]" is incompatible with type "Dict[str, Any]"
-       "dict[Unknown | None, Index | Unknown]" is incompatible with "Dict[str, Any]"
-         Type parameter "_KT@dict" is invariant, but "Unknown | None" is not the same as "str" (reportAssignmentType)
-   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:1213:16 - error: Expression of type "Unknown | None" is incompatible with return type "Self@DataFrameSchema[TDataObject@DataFrameSchema]"
-     Type "Unknown | None" is incompatible with type "Self@DataFrameSchema[TDataObject@DataFrameSchema]" (reportReturnType)
-   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:1295:20 - error: Argument of type "str | List[str] | None" cannot be assigned to parameter "unique" of type "List[str] | None" in function "dataframe_strategy" (reportArgumentType)
+   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:1259:9 - error: Overload 2 for "to_json" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
-   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/model.py:162:13 - error: "__config__" overrides symbol of same name in class "BaseModel"
-     Variable is mutable so its type is invariant
-       Override type "type[BaseConfig] | None" is not the same as base type "type[BaseModelConfig] | None" (reportIncompatibleVariableOverride)
+ /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/model_components.py
+   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/model_components.py:260:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/model_components.py:279:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/array.py:104:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/components.py:37:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/components.py:191:18 - error: Argument of type "str | Tuple[str, ...] | None" cannot be assigned to parameter "name" of type "str | None" in function "column_strategy" (reportArgumentType)
-   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/components.py:277:45 - error: "example" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/components.py:295:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/components.py:40:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pandera/pandera/api/pyspark/column_schema.py:32:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/pyspark/column_schema.py:97:39 - error: Expression of type "None" cannot be assigned to parameter of type "ErrorHandler"
-     "None" is incompatible with "ErrorHandler" (reportArgumentType)
+   /tmp/mypy_primer/projects/pandera/pandera/api/pyspark/components.py:27:10 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/pandera/pandera/api/pyspark/components.py:128:39 - error: Expression of type "None" cannot be assigned to parameter of type "ErrorHandler"
-     "None" is incompatible with "ErrorHandler" (reportArgumentType)

... (truncated 308 lines) ...

pandas (https://github.com/pandas-dev/pandas)
+   /tmp/mypy_primer/projects/pandas/pandas/_libs/hashtable.pyi:204:9 - error: Overload 3 for "unique" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/_libs/tslibs/offsets.pyi:106:5 - error: Overload 2 for "to_offset" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/_libs/tslibs/offsets.pyi:108:5 - error: Overload 3 for "to_offset" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/_libs/tslibs/timedeltas.pyi:151:9 - error: Overload 1 for "__rfloordiv__" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/_libs/tslibs/timedeltas.pyi:155:9 - error: Overload 3 for "__rfloordiv__" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/pandas/pandas/_testing/contexts.py
+   /tmp/mypy_primer/projects/pandas/pandas/_testing/contexts.py:31:47 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/algorithms.py:1202:13 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/base.py:1379:17 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/base.py:1387:17 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/base.py:1395:17 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:1232:9 - error: Overload 2 for "to_string" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:1267:9 - error: Overload 2 for "to_string" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2524:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2525:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2709:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2714:9 - error: Overload 2 for "to_markdown" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2720:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2725:9 - error: Overload 3 for "to_markdown" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2731:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2741:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2829:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2834:9 - error: Overload 2 for "to_parquet" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2842:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2847:9 - error: Overload 2 for "to_parquet" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2855:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2970:9 - error: Overload 2 for "to_orc" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:2980:9 - error: Overload 3 for "to_orc" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3275:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3276:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3280:9 - error: Overload 2 for "to_xml" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3297:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3298:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3305:9 - error: Overload 2 for "to_xml" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3322:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:3323:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:6805:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:6819:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:6832:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:7099:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:7114:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:7129:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:7143:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11592:9 - error: Overload 3 for "any" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11602:9 - error: Overload 3 for "any" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11638:9 - error: Overload 3 for "all" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11649:9 - error: Overload 3 for "all" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11685:9 - error: Overload 3 for "min" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11696:9 - error: Overload 3 for "min" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11732:9 - error: Overload 3 for "max" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11743:9 - error: Overload 3 for "max" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11967:9 - error: Overload 3 for "mean" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:11978:9 - error: Overload 3 for "mean" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12014:9 - error: Overload 3 for "median" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12025:9 - error: Overload 3 for "median" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12063:9 - error: Overload 3 for "sem" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12074:9 - error: Overload 3 for "sem" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12183:9 - error: Overload 3 for "var" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12194:9 - error: Overload 3 for "var" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+   /tmp/mypy_primer/projects/pandas/pandas/core/frame.py:12302:9 - error: Overload 3 for "std" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)

... (truncated 199 lines) ...

pydantic (https://github.com/samuelcolvin/pydantic)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:27:61 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:68:85 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:98:12 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:99:23 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:100:26 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:107:10 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:122:58 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:122:70 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/aliases.py:122:109 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/annotated_handlers.py:115:29 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/annotated_handlers.py:119:39 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/color.py:82:45 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:20:33 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:35:12 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:49:21 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:52:12 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:321:22 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:390:24 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:393:20 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:745:22 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/config.py:751:23 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:38:17 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:39:27 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:56:17 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:57:27 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:97:11 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:105:13 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:106:23 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:283:23 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:284:6 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/dataclasses.py:307:30 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:79:47 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:79:77 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:102:52 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:130:41 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:141:41 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/errors.py:152:41 - error: Return type of "__init__" must be None (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:50:17 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:51:22 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:52:12 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:53:21 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:54:23 - error: Expected type expression but received "UnionType" (reportGeneralTypeIssues)

... (truncated 1022 lines) ...```