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

Merge 1.1.390 #926

Merged
merged 20 commits into from
Dec 4, 2024
Merged

Merge 1.1.390 #926

merged 20 commits into from
Dec 4, 2024

Conversation

DetachHead
Copy link
Owner

No description provided.

heejaechang and others added 20 commits November 14, 2024 13:00
* dynamically import smol-toml package

* fixed prettier

* wait for the module to be loaded explicitly

* fixed style

* addressing PR feedback
…e runtime. If a non-base exception is targeted, the inferred type is now `ExceptionGroup` rather than `BaseExceptionGroup`. This addresses #9466. (#9467)
…using the `x in y` pattern where `y` is a container type whose element type is `Unknown` or `Any`. This addresses #9457. (#9469)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/commits)

---
updated-dependencies:
- dependency-name: smol-toml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…n the overload accepts a `Callable[..., T]` form. This addresses #9514. (#9516)
…sing a recursive type alias. This addresses #9497. (#9517)
…ed and has no explicit return type annotation and the body references the decorated function in a loop. This addresses #9492. (#9518)
…` is set to a callable object. This addresses #9470. (#9519)
…at has a default value assigned to it. This addresses #9468. (#9522)
…tially-unknown metaclass type detected by the `--verifytypes` command. This addresses #9530.
…then attempting to overwrite it. This partially addresses microsoft/pylance-release#6455. (#9532)

Added check for an attempt to assign to a module-local variable if it is shadowing a `Final` variable declared by the builtins module or some other chained file. This addresses microsoft/pylance-release#6455.
…ce expressions. This addresses #9533. (#9534)
…ple` or `TypedDict` attribute annotation. This addresses #9526. (#9540)
# Conflicts:
#	lerna.json
#	packages/pyright-internal/package-lock.json
#	packages/pyright-internal/package.json
#	packages/pyright-internal/src/analyzer/checker.ts
#	packages/pyright/package-lock.json
#	packages/pyright/package.json
#	packages/vscode-pyright/package-lock.json
#	packages/vscode-pyright/package.json
#	tsconfig.json
Copy link
Contributor

github-actions bot commented Dec 4, 2024

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

kornia (https://github.com/kornia/kornia)
-   /tmp/mypy_primer/projects/kornia/kornia/augmentation/_2d/geometric/resize.py:73:31 - warning: Type of "name" is Any (reportAny)
-   /tmp/mypy_primer/projects/kornia/kornia/augmentation/_2d/geometric/resize.py:73:31 - warning: Type of "lower" is Any (reportAny)
-   /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:74:29 - warning: Argument type is unknown
+   /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:74:29 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "name" in function "setattr" (reportUnknownArgumentType)
+     Argument corresponds to parameter "name" in function "setattr"
+     Argument type is "str | Unknown" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:65:46 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:65:46 - error: Argument of type "tuple[slice[None, None, None], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:66:46 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:66:46 - error: Argument of type "tuple[slice[None, None, None], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:672:24 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:672:24 - error: Argument of type "tuple[slice[None, None, None], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:672:43 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:672:43 - error: Argument of type "tuple[slice[None, None, None], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:33 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:33 - error: Argument of type "tuple[slice[None, None, None], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:52 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:52 - error: Argument of type "tuple[slice[None, None, None], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:71 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:731:71 - error: Argument of type "tuple[slice[None, None, None], Literal[2], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[2], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:31 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:31 - error: Argument of type "tuple[slice[None, None, None], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:44 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:44 - error: Argument of type "tuple[slice[None, None, None], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:57 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+   /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:186:57 - error: Argument of type "tuple[slice[None, None, None], Literal[2]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+     "tuple[slice[None, None, None], Literal[2]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:331:21 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], None, slice[_StartT@slice, _StopT@slice, _StepT@slice]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], None, slice[_StartT@slice, _StopT@slice, _StepT@slice]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+   /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:331:21 - error: Argument of type "tuple[slice[None, None, None], None, slice[None, Literal[1], None]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+     "tuple[slice[None, None, None], None, slice[None, Literal[1], None]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
-   /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:334:21 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], None, slice[_StartT@slice, _StopT@slice, _StepT@slice]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
-     "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], None, slice[_StartT@slice, _StopT@slice, _StepT@slice]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)

... (truncated 12 lines) ...

pytest (https://github.com/pytest-dev/pytest)
-   /tmp/mypy_primer/projects/pytest/extra/get_issues.py:51:5 - warning: Return type, "Unknown | Literal['issue']", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/pytest/extra/get_issues.py:55:20 - warning: Return type is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/pytest/extra/get_issues.py:63:9 - warning: Type of "kind" is partially unknown
-     Type of "kind" is "Unknown | Literal['issue']" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/pytest/extra/get_issues.py:68:23 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "values" in function "print"
-     Argument type is "Unknown | Literal['issue']" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/pytest/src/_pytest/cacheprovider.py:452:33 - warning: Type of "nodeid" is partially unknown
-     Type of "nodeid" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/pytest/src/_pytest/fixtures.py:847:65 - warning: Type of "argname" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/pytest/src/_pytest/fixtures.py:854:69 - warning: Type of "argname" is partially unknown
-     Type of "argname" is "Unknown | str | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/pytest/src/_pytest/fixtures.py:854:69 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "argname" in function "__init__"
-     Argument type is "Unknown | str | None" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/pytest/src/_pytest/assertion/rewrite.py:1034:58 - warning: Type of "id" is unknown (reportUnknownMemberType)
- 1165 errors, 17258 warnings, 0 notes
+ 1165 errors, 17249 warnings, 0 notes

steam.py (https://github.com/Gobot1234/steam.py)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:212:30 - error: Cannot assign to attribute "__class__" for class "ProtobufMessage*"
+     Type "RequestType | type[Self@ProtobufMessage]" is not assignable to type "type[Self@ProtobufMessage]" (reportAttributeAccessIssue)
- 8475 errors, 97 warnings, 0 notes
+ 8476 errors, 97 warnings, 0 notes

starlette (https://github.com/encode/starlette)
-   /tmp/mypy_primer/projects/starlette/starlette/_compat.py:16:5 - warning: Result of call expression is of type "_Hash" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/starlette/starlette/_compat.py:16:5 - warning: Result of call expression is of type "HASH" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/starlette/starlette/routing.py:155:35 - warning: Argument type is unknown
-     Argument corresponds to parameter "element" in function "add" (reportUnknownArgumentType)
- 207 errors, 4269 warnings, 0 notes
+ 207 errors, 4268 warnings, 0 notes

ibis (https://github.com/ibis-project/ibis)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:327:48 - warning: Argument type is unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:327:48 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "database" in function "list_tables" (reportUnknownArgumentType)
+     Argument corresponds to parameter "database" in function "list_tables"
+     Argument type is "Unknown | str" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:328:44 - warning: Argument type is unknown
-     Argument corresponds to parameter "database" in function "list_udfs" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:329:44 - warning: Argument type is unknown
-     Argument corresponds to parameter "database" in function "list_udas" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:337:57 - warning: Argument type is unknown
-     Argument corresponds to parameter "database" in function "drop_table_or_view" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:343:30 - warning: Argument type is unknown
-     Argument corresponds to parameter "database" in function "drop_udf" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:351:30 - warning: Argument type is unknown
-     Argument corresponds to parameter "database" in function "drop_uda" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:359:34 - warning: Argument type is unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/__init__.py:359:34 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "name" in function "__init__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "name" in function "__init__"
+     Argument type is "Unknown | str" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/metadata.py:70:5 - warning: Return type, "Unknown | bool", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/metadata.py:70:5 - warning: Return type, "Unknown | bool | Literal['true', 'yes', 'false', 'no']", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/metadata.py:79:16 - warning: Return type is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/impala/metadata.py:79:16 - warning: Return type, "Unknown | Literal['true', 'yes', 'false', 'no']", is partially unknown (reportUnknownVariableType)
-     Type of "_table_param_cleaners" is "dict[str, ((x: Unknown) -> (Unknown | bool)) | ((x: Unknown) -> (int | Unknown)) | ((x: Unknown) -> Unknown)]" (reportUnknownMemberType)
+     Type of "_table_param_cleaners" is "dict[str, ((x: Unknown) -> (Unknown | bool | Literal['true', 'yes', 'false', 'no'])) | ((x: Unknown) -> (int | Unknown)) | ((x: Unknown) -> Unknown)]" (reportUnknownMemberType)
-     Type of "_table_param_cleaners" is "dict[str, ((x: Unknown) -> (Unknown | bool)) | ((x: Unknown) -> (int | Unknown)) | ((x: Unknown) -> Unknown)]" (reportUnknownVariableType)
+     Type of "_table_param_cleaners" is "dict[str, ((x: Unknown) -> (Unknown | bool | Literal['true', 'yes', 'false', 'no'])) | ((x: Unknown) -> (int | Unknown)) | ((x: Unknown) -> Unknown)]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/pyspark/datatypes.py:101:49 - warning: Argument type is unknown
-     Argument corresponds to parameter "dtype" in function "from_ibis" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/datafusion.py:399:56 - warning: Type of "name" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/datafusion.py:399:56 - warning: Type of "capitalize" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:574:36 - warning: Argument type is unknown
-     Argument corresponds to parameter "name" in function "getattr" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/pyspark.py:500:41 - warning: Argument type is unknown
-     Argument corresponds to parameter "x" in function "__new__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/trino.py:509:58 - warning: Type of "lower" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/bigquery/__init__.py:613:70 - warning: Type of "unit" is unknown (reportUnknownMemberType)
-     Argument corresponds to parameter "string" in function "sha256" (reportUnknownArgumentType)
+     Argument corresponds to parameter "string" in function "openssl_sha256" (reportUnknownArgumentType)
-     Argument corresponds to parameter "string" in function "sha256" (reportUnknownArgumentType)
+     Argument corresponds to parameter "string" in function "openssl_sha256" (reportUnknownArgumentType)
-     Type of "intersection" is "dict[Unknown, Unknown]" (reportUnknownVariableType)
+     Type of "intersection" is "dict[Hashable*, Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/ibis/ibis/common/deferred.py:455:31 - warning: Argument type is unknown
-     Argument corresponds to parameter "func" in function "__init__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/common/deferred.py:474:31 - warning: Argument type is unknown
-     Argument corresponds to parameter "func" in function "__init__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:135:17 - warning: Type of "edge" is partially unknown
-     Type of "edge" is "tuple[Node | Unknown, Node | Unknown | Relation]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:140:45 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "o" in function "getattr"
-     Argument type is "Node | Unknown" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:164:50 - error: Argument of type "Node | Unknown" cannot be assigned to parameter of type "Node"
+   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:164:50 - error: Argument of type "Node" cannot be assigned to parameter of type "Node"
-     Type "Node | Unknown" is not assignable to type "Node"
-       "ibis.common.graph.Node" is not assignable to "ibis.expr.operations.core.Node" (reportArgumentType)
+     "ibis.common.graph.Node" is not assignable to "ibis.expr.operations.core.Node" (reportArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:164:53 - error: Argument of type "Node | Unknown | Relation" cannot be assigned to parameter of type "Node"
+   /tmp/mypy_primer/projects/ibis/ibis/expr/visualize.py:164:53 - error: Argument of type "Node | Relation" cannot be assigned to parameter of type "Node"
-     Type "Node | Unknown | Relation" is not assignable to type "Node"
+     Type "Node | Relation" is not assignable to type "Node"
-   /tmp/mypy_primer/projects/ibis/ibis/expr/operations/core.py:126:35 - error: Argument of type "() -> Unknown" cannot be assigned to parameter "s" of type "Iterable[_S@union]" in function "union"
+   /tmp/mypy_primer/projects/ibis/ibis/expr/operations/core.py:126:35 - error: Argument of type "Attribute" cannot be assigned to parameter "s" of type "Iterable[_S@union]" in function "union"
-     "function" is incompatible with protocol "Iterable[_S@union]"
+     "Attribute" is incompatible with protocol "Iterable[_S@union]"
-   /tmp/mypy_primer/projects/ibis/ibis/expr/types/joins.py:104:28 - warning: Argument type is unknown
-     Argument corresponds to parameter "element" in function "add" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/formats/polars.py:98:36 - warning: Type of "short" is unknown (reportUnknownMemberType)
- 8232 errors, 107908 warnings, 0 notes
+ 8232 errors, 107890 warnings, 0 notes

rich (https://github.com/Textualize/rich)
-   /tmp/mypy_primer/projects/rich/rich/markdown.py:318:28 - warning: Argument type is Any
-     Argument corresponds to parameter "justify" in function "__init__" (reportAny)
- 471 errors, 4416 warnings, 0 notes
+ 471 errors, 4415 warnings, 0 notes

openlibrary (https://github.com/internetarchive/openlibrary)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/accounts/model.py:327:25 - warning: Argument type is unknown
-     Argument corresponds to parameter "value" in function "remove" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:188:5 - warning: Return type, "tuple[Unknown | Literal['publish_country'], Literal['value missing'], Literal[0]] | tuple[Unknown, Literal['match'], Literal[40]] | tuple[Unknown, Literal['mismatch'], Literal[-205]]", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:191:16 - warning: Return type, "tuple[Unknown | Literal['publish_country'], Literal['value missing'], Literal[0]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:193:16 - warning: Return type, "tuple[Unknown, Literal['match'], Literal[40]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:196:16 - warning: Return type, "tuple[Unknown, Literal['match'], Literal[40]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:197:12 - warning: Return type, "tuple[Unknown, Literal['mismatch'], Literal[-205]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:200:5 - warning: Return type, "tuple[Unknown | Literal['lccn'], Literal['value missing'], Literal[0]] | tuple[Unknown, Literal['match'], Literal[200]] | tuple[Unknown, Literal['mismatch'], Literal[-320]]", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:203:16 - warning: Return type, "tuple[Unknown | Literal['lccn'], Literal['value missing'], Literal[0]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:205:16 - warning: Return type, "tuple[Unknown, Literal['match'], Literal[200]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/add_book/match.py:206:12 - warning: Return type, "tuple[Unknown, Literal['mismatch'], Literal[-320]]", is partially unknown (reportUnknownVariableType)
-     Type of "subjects" is "dict[Unknown, dict[Unknown, int]]" (reportUnknownVariableType)
+     Type of "subjects" is "dict[str, dict[Unknown, int]]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/get_subjects.py:110:39 - warning: Type of "k" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_marc.py:44:9 - warning: Return type, "Generator[tuple[Unknown, MockField], Any, None]", is partially unknown (reportUnknownParameterType)
-     Return type mismatch: base method returns type "Iterator[tuple[str, str | MarcFieldBase]]", override returns type "Generator[tuple[Unknown, MockField], Any, None]"
+     Return type mismatch: base method returns type "Iterator[tuple[str, str | MarcFieldBase]]", override returns type "Generator[tuple[str, MockField], Any, None]"
-       "Generator[tuple[Unknown, MockField], Any, None]" is not assignable to "Iterator[tuple[str, str | MarcFieldBase]]"
+       "Generator[tuple[str, MockField], Any, None]" is not assignable to "Iterator[tuple[str, str | MarcFieldBase]]"
-         Type parameter "_T_co@Iterator" is covariant, but "tuple[Unknown, MockField]" is not a subtype of "tuple[str, str | MarcFieldBase]"
+         Type parameter "_T_co@Iterator" is covariant, but "tuple[str, MockField]" is not a subtype of "tuple[str, str | MarcFieldBase]"
-           "tuple[Unknown, MockField]" is not assignable to "tuple[str, str | MarcFieldBase]"
+           "tuple[str, MockField]" is not assignable to "tuple[str, str | MarcFieldBase]"
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_marc.py:46:19 - warning: Type of "tag" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:56:12 - warning: Return type, "dict[Unknown, list[Unknown] | Unknown] | dict[Unknown, Unknown]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:56:12 - warning: Return type, "dict[str | Unknown, list[Unknown] | Unknown] | dict[Unknown, Unknown]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:64:5 - warning: Return type, "dict[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:64:5 - warning: Return type, "dict[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
-     Type of "metadata" is "dict[Unknown, list[Unknown] | Unknown]" (reportUnknownVariableType)
+     Type of "metadata" is "dict[str | Unknown, list[Unknown] | Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:74:12 - warning: Return type, "dict[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:74:12 - warning: Return type, "dict[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:77:5 - warning: Return type, "dict[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:77:5 - warning: Return type, "dict[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:88:9 - warning: Return type, "tuple[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:88:9 - warning: Return type, "tuple[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:93:16 - warning: Return type, "tuple[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:93:16 - warning: Return type, "tuple[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:95:12 - warning: Return type, "dict[Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/ia.py:95:12 - warning: Return type, "dict[str | Unknown, list[Unknown] | Unknown]", is partially unknown (reportUnknownVariableType)
-     Argument type is "Generator[tuple[Unknown, list[Unknown] | Unknown], None, None]" (reportUnknownArgumentType)
+     Argument type is "Generator[tuple[str | Unknown, list[Unknown] | Unknown], None, None]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/lending.py:539:59 - warning: Type of "ocaid" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/lending.py:539:59 - warning: Argument type is unknown
-     Argument corresponds to parameter "key" in function "get" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/lists/model.py:531:20 - warning: Type of "split" is partially unknown
-     Type of "split" is "Unknown | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/lists/model.py:531:20 - warning: Return type, "Unknown | Any", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/coverstore/code.py:259:46 - warning: Argument type is unknown
-     Argument corresponds to parameter "size" in function "zipview_url_from_id" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/openlibrary/openlibrary/coverstore/code.py:262:37 - warning: Type of "lower" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/coverstore/code.py:262:37 - warning: Type of "lower" is partially unknown

... (truncated 3420 lines) ...```

@DetachHead DetachHead merged commit 1710038 into main Dec 4, 2024
20 checks passed
@DetachHead DetachHead deleted the merge-1.1.390 branch December 4, 2024 13:07
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.

4 participants