Skip to content

Fixed bug that resulted in incorrect simplification of Any | Never.…#10875

Open
erictraut wants to merge 5 commits intomainfrom
issue-10625
Open

Fixed bug that resulted in incorrect simplification of Any | Never.…#10875
erictraut wants to merge 5 commits intomainfrom
issue-10625

Conversation

@erictraut
Copy link
Copy Markdown
Collaborator

… This addresses #10625.

* main:
  Changed the evaluated type of `__class__` from `type[Self]` to `type[<Enclosing class]`. This addresses #10685. (#10874)
  Added optimization that reduces the number of Uri objects that need to be created during type evaluation. This is an attempt to address #10832. (#10872)
  Fixed bug that causes a false negative when using unquoted types in a TypedDict functional class definition if the types are forward declared. This addresses #10612. (#10869)
  Fixed bug that resulted in false negative when backslash followed by line feed occurs at end of file. This addresses #10814. (#10867)
  Fixed false negative when a keyword parameter in a child class method overrides a method with a `**kwargs` in the parent and the type is incompatible. This addresses #10815. (#10866)
  Fixed regression introduced in 1.1.343 that results in nondeterministic (order-dependent) type evaluation under certain circumstances involving recursive type aliases. This addresses #10850. (#10865)
  Revert "Added support for tracking multiple constraint sets when performing protocol matching. This allows protocols with overloaded methods to contribute independent constraint sets. This addresses #9835. (#9864)" (#10863)
  Fixed bug that contributes to out-of-memory crashes under certain circumstances where a module's transitive import graph is very large and may not fit within the available heap space. (#10862)
  Bump tmp from 0.2.3 to 0.2.5 in /packages/vscode-pyright (#10824)
  Added support for `match_args` dataclass parameter. This addresses #10858. (#10861)
  Fixed bug that results in false negative when a `closed=False` is used in `TypedDict` that subclasses from a non-open `TypedDict` base class. This addresses #10859. (#10860)
  Revert "Reverted a recent change that appears to have affected performance on some projects. This attempts to address #10832. (#10841)"
  Improved performance of import resolution when there are large number… (#10855)
  Document editable installs with uv (#10854)
  Fixed a bug that results in spurious errors if a class decorator is a… (#10846)
  Fixed a bug that results in false positive errors when using `object` methods (like `__eq__`) on a `Sentinel` instance. This addresses #10773. (#10844)
  Fixed bug that results in incorrect literal math results for bitwise negation. This addresses #10834. (#10842)
  Reverted a recent change that appears to have affected performance on some projects. This attempts to address #10832. (#10841)
  pull-pylance-with-pyright-1.1.403-20250820-201137 (#10831)
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@erictraut
Copy link
Copy Markdown
Collaborator Author

@codex review

@bschnurr bschnurr closed this May 8, 2026
@bschnurr bschnurr reopened this May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

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

schemathesis (https://github.com/schemathesis/schemathesis)
-   .../projects/schemathesis/src/schemathesis/cli/commands/fuzz/handlers/output.py:177:19 - error: "start" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/schemathesis/src/schemathesis/cli/commands/run/handlers/output.py:367:19 - error: "start" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/schemathesis/src/schemathesis/cli/commands/run/handlers/output.py:555:19 - error: "start" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:77:27 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:78:27 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:79:63 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:80:46 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:81:51 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:82:51 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:83:37 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(int) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(int) -> T@map"
-       Type "None" is not assignable to type "(int) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:84:74 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(int) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(int) -> T@map"
-       Type "None" is not assignable to type "(int) -> T@map" (reportArgumentType)
-   .../projects/schemathesis/src/schemathesis/specs/graphql/scalars.py:85:41 - error: Argument of type "Unknown | None" cannot be assigned to parameter "pack" of type "(str) -> T@map" in function "map"
-     Type "Unknown | None" is not assignable to type "(str) -> T@map"
-       Type "None" is not assignable to type "(str) -> T@map" (reportArgumentType)
- 526 errors, 123 warnings, 0 informations
+ 514 errors, 123 warnings, 0 informations

ibis (https://github.com/ibis-project/ibis)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:305:43 - error: "table" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:307:42 - error: "dataset_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:308:41 - error: "project" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:1239:45 - error: "dataset_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:1242:46 - error: "project" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:1349:45 - error: "project" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:1349:76 - error: "dataset_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/bigquery/__init__.py:1376:70 - error: "query_parameters" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:207:23 - error: "conf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:213:27 - error: "conf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:216:27 - error: "conf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:240:23 - error: "stop" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:257:33 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:262:38 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:295:37 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:353:37 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:377:58 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:384:58 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:395:42 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:429:27 - error: "udf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:436:27 - error: "udf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:444:27 - error: "udf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:450:31 - error: "udf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:454:27 - error: "udf" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:472:32 - error: "createDataFrame" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:477:32 - error: "createDataFrame" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:488:30 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:608:30 - error: "table" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:615:32 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:687:36 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:695:31 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:787:27 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:796:23 - error: "catalog" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:832:34 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:865:34 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:906:34 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:947:34 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:989:28 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1028:28 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1117:34 - error: "readStream" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1183:28 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1230:38 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1236:38 - error: "readStream" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1284:38 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1291:38 - error: "readStream" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1337:38 - error: "read" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1341:38 - error: "readStream" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/pyspark/__init__.py:1361:28 - error: "sql" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:321:49 - error: "expression" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:324:42 - error: "this" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:327:55 - error: "this" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1181:16 - error: Operator "<" not supported for types "Literal[0]" and "Unknown | None"
-     Operator "<" not supported for types "Literal[0]" and "None" (reportOperatorIssue)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1181:20 - error: Operator "<=" not supported for "None" (reportOptionalOperand)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1183:18 - error: Operator "<" not supported for types "Literal[3]" and "Unknown | None"
-     Operator "<" not supported for types "Literal[3]" and "None" (reportOperatorIssue)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1183:22 - error: Operator "<=" not supported for "None" (reportOptionalOperand)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1185:18 - error: Operator "<" not supported for types "Literal[9]" and "Unknown | None"
-     Operator "<" not supported for types "Literal[9]" and "None" (reportOperatorIssue)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1185:22 - error: Operator "<=" not supported for "None" (reportOptionalOperand)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1187:18 - error: Operator "<" not supported for types "Literal[18]" and "Unknown | None"
-     Operator "<" not supported for types "Literal[18]" and "None" (reportOperatorIssue)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1187:23 - error: Operator "<=" not supported for "None" (reportOptionalOperand)
-   .../projects/ibis/ibis/backends/sql/datatypes.py:1371:29 - error: "this" is not a known attribute of "None" (reportOptionalMemberAccess)
-   .../projects/ibis/ibis/selectors.py:526:28 - error: Argument of type "Unknown | str" cannot be assigned to parameter "selector" of type "Selector" in function "__init__"
-     Type "Unknown | str" is not assignable to type "Selector"
-       "str" is not assignable to "Selector" (reportArgumentType)
- 7587 errors, 262 warnings, 0 informations
+ 7526 errors, 262 warnings, 0 informations

AutoSplit (https://github.com/Toufool/AutoSplit)
-     Type of "is_valid_image" is "(image: Unknown | None) -> TypeGuard[Unknown]" (reportUnknownVariableType)
+     Type of "is_valid_image" is "(image: Unknown) -> TypeGuard[Unknown]" (reportUnknownVariableType)
-     Type of "__update_live_image_details" is "(capture: Unknown | None, *, called_from_timer: bool = False) -> None" (reportUnknownMemberType)
+     Type of "__update_live_image_details" is "(capture: Unknown, *, called_from_timer: bool = False) -> None" (reportUnknownMemberType)
-   .../projects/AutoSplit/src/AutoSplit.py:289:9 - error: Type of parameter "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:289:9 - error: Type of parameter "capture" is unknown (reportUnknownParameterType)
-     Parameter type is "Unknown | None" (reportUnknownParameterType)
-   .../projects/AutoSplit/src/AutoSplit.py:298:13 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:298:13 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "get_frame" is "() -> (Unknown | None)" (reportUnknownMemberType)
+     Type of "get_frame" is "() -> Unknown" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:313:48 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "set_preview_image" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:373:9 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:373:9 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown | None) -> (float | Unknown)" (reportUnknownMemberType)
+     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown) -> (float | Unknown)" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:375:78 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "compare_with_capture" (reportUnknownArgumentType)
+   .../projects/AutoSplit/src/AutoSplit.py:399:32 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "is_valid_image" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:467:9 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:467:9 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "get_frame" is "() -> (Unknown | None)" (reportUnknownMemberType)
+     Type of "get_frame" is "() -> Unknown" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:468:31 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "is_valid_image" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:496:17 - error: Type of "new_capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:496:17 - error: Type of "new_capture" is unknown (reportUnknownVariableType)
-     Type of "new_capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown | None) -> (float | Unknown)" (reportUnknownMemberType)
+     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown) -> (float | Unknown)" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:497:54 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "compare_with_capture" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:501:17 - error: Type of "last_capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:501:17 - error: Type of "last_capture" is unknown (reportUnknownVariableType)
-     Type of "last_capture" is "Unknown | None" (reportUnknownVariableType)
-   .../projects/AutoSplit/src/AutoSplit.py:739:13 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:739:13 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "__reset_if_should" is "(capture: Unknown | None) -> bool" (reportUnknownMemberType)
+     Type of "__reset_if_should" is "(capture: Unknown) -> bool" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:741:39 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "__reset_if_should" (reportUnknownArgumentType)
-     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown | None) -> (float | Unknown)" (reportUnknownMemberType)
+     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown) -> (float | Unknown)" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:744:70 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "compare_with_capture" (reportUnknownArgumentType)
+   .../projects/AutoSplit/src/AutoSplit.py:787:83 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "is_valid_image" (reportUnknownArgumentType)
-     Type of "__reset_if_should" is "(capture: Unknown | None) -> bool" (reportUnknownMemberType)
+     Type of "__reset_if_should" is "(capture: Unknown) -> bool" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:810:39 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "__reset_if_should" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:843:12 - error: Type of "SettingsWidget" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:843:12 - error: Type of "SettingsWidget" is unknown (reportUnknownMemberType)
-     Type of "SettingsWidget" is "Unknown | None" (reportUnknownMemberType)
-   .../projects/AutoSplit/src/AutoSplit.py:873:12 - error: Type of "SettingsWidget" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:873:12 - error: Type of "SettingsWidget" is unknown (reportUnknownMemberType)
-     Type of "SettingsWidget" is "Unknown | None" (reportUnknownMemberType)
-   .../projects/AutoSplit/src/AutoSplit.py:887:9 - error: Return type, "Unknown | None", is partially unknown (reportUnknownParameterType)
+   .../projects/AutoSplit/src/AutoSplit.py:887:9 - error: Return type is unknown (reportUnknownParameterType)
-   .../projects/AutoSplit/src/AutoSplit.py:889:9 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:889:9 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "get_frame" is "() -> (Unknown | None)" (reportUnknownMemberType)
+     Type of "get_frame" is "() -> Unknown" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:893:31 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "is_valid_image" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:906:21 - error: Type of "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:906:21 - error: Type of "capture" is unknown (reportUnknownVariableType)
-     Type of "capture" is "Unknown | None" (reportUnknownVariableType)
-     Type of "get_frame" is "() -> (Unknown | None)" (reportUnknownMemberType)
+     Type of "get_frame" is "() -> Unknown" (reportUnknownMemberType)
-     Type of "__update_live_image_details" is "(capture: Unknown | None, *, called_from_timer: bool = False) -> None" (reportUnknownMemberType)
+     Type of "__update_live_image_details" is "(capture: Unknown, *, called_from_timer: bool = False) -> None" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:908:42 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "__update_live_image_details" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:909:16 - error: Return type, "Unknown | None", is partially unknown (reportUnknownVariableType)
+   .../projects/AutoSplit/src/AutoSplit.py:909:16 - error: Return type is unknown (reportUnknownVariableType)
-   .../projects/AutoSplit/src/AutoSplit.py:911:33 - error: Type of parameter "capture" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:911:33 - error: Type of parameter "capture" is unknown (reportUnknownParameterType)
-     Parameter type is "Unknown | None" (reportUnknownParameterType)
-     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown | None) -> (float | Unknown)" (reportUnknownMemberType)
+     Type of "compare_with_capture" is "(default: AutoSplit | int, capture: Unknown) -> (float | Unknown)" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:915:74 - error: Argument type is unknown
+     Argument corresponds to parameter "capture" in function "compare_with_capture" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:967:29 - error: Type of "byte_array" is partially unknown
+   .../projects/AutoSplit/src/AutoSplit.py:967:29 - error: Type of "byte_array" is unknown (reportUnknownMemberType)
-     Type of "byte_array" is "Unknown | None" (reportUnknownMemberType)
+   .../projects/AutoSplit/src/AutoSplit.py:967:29 - error: Argument type is unknown
+     Argument corresponds to parameter "image" in function "is_valid_image" (reportUnknownArgumentType)
-   .../projects/AutoSplit/src/AutoSplit.py:1033:39 - error: Type of parameter "image" is partially unknown

... (truncated 136 lines) ...

bokeh (https://github.com/bokeh/bokeh)
-   .../projects/bokeh/src/bokeh/layouts.py:592:33 - error: Argument of type "Unknown | col" cannot be assigned to parameter "item" of type "LayoutDOM" in function "_has_auto_sizing"
-     Type "Unknown | col" is not assignable to type "LayoutDOM"
-       "col" is not assignable to "LayoutDOM" (reportArgumentType)
-   .../projects/bokeh/src/bokeh/layouts.py:593:24 - error: Cannot assign to attribute "sizing_mode" for class "col"
-     Attribute "sizing_mode" is unknown (reportAttributeAccessIssue)
- 1128 errors, 49 warnings, 0 informations
+ 1126 errors, 49 warnings, 0 informations

steam.py (https://github.com/Gobot1234/steam.py)
-     Type of "get" is "(url: Unknown | str, **kwargs: Any) -> Coroutine[Any, Any, Any]" (reportUnknownMemberType)
+     Type of "get" is "(url: Unknown, **kwargs: Any) -> Coroutine[Any, Any, Any]" (reportUnknownMemberType)
-   .../projects/steam.py/steam/clan.py:85:9 - error: Type of parameter "community_url" is partially unknown
+   .../projects/steam.py/steam/clan.py:85:9 - error: Type of parameter "community_url" is unknown (reportUnknownParameterType)
-     Parameter type is "Unknown | str | None" (reportUnknownParameterType)
-   .../projects/steam.py/steam/clan.py:121:43 - error: Cannot access attribute "parts" for class "str"
-     Attribute "parts" is unknown (reportAttributeAccessIssue)
-   .../projects/steam.py/steam/clan.py:121:70 - error: Cannot access attribute "parts" for class "str"
-     Attribute "parts" is unknown (reportAttributeAccessIssue)
-   .../projects/steam.py/steam/clan.py:524:9 - error: Type of parameter "community_url" is partially unknown
+   .../projects/steam.py/steam/clan.py:524:9 - error: Type of parameter "community_url" is unknown (reportUnknownParameterType)
-     Parameter type is "Unknown | str | None" (reportUnknownParameterType)
-     Type of "edit" is "(self: PartialClan, *, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
+     Type of "edit" is "(self: PartialClan, *, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
-   .../projects/steam.py/steam/client.py:667:9 - error: Type of parameter "community_url" is partially unknown
+   .../projects/steam.py/steam/client.py:667:9 - error: Type of parameter "community_url" is unknown (reportUnknownParameterType)
-     Parameter type is "Unknown | str | None" (reportUnknownParameterType)
-   .../projects/steam.py/steam/client.py:710:43 - error: Cannot access attribute "parts" for class "str"
-     Attribute "parts" is unknown (reportAttributeAccessIssue)
-   .../projects/steam.py/steam/client.py:710:70 - error: Cannot access attribute "parts" for class "str"
-     Attribute "parts" is unknown (reportAttributeAccessIssue)
-     Type of "edit" is "(*, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, name: str | None = None, tagline: str | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
+     Type of "edit" is "(*, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, name: str | None = None, tagline: str | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
-     Type of "parse_trade_url" is "(url: Unknown | str, /) -> (TradeURLInfo | None)" (reportUnknownMemberType)
+     Type of "parse_trade_url" is "(url: Unknown, /) -> (TradeURLInfo | None)" (reportUnknownMemberType)

... (truncated 640 lines) ...```

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.

2 participants