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.359 #303

Merged
merged 28 commits into from
Apr 17, 2024
Merged

Merge 1.1.359 #303

merged 28 commits into from
Apr 17, 2024

Conversation

DetachHead
Copy link
Owner

No description provided.

erictraut and others added 28 commits April 9, 2024 23:13
…uple) to support `<`, `<=`, `>` and `>=` comparisons as well. This addresses #7655. (#7657)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
Co-authored-by: Stella Huang <stellahuang@microsoft.com>
Co-authored-by: Kacie Kang <jikang@microsoft.com>
… to prefer "attribute". This partly addresses #7664.
… type" to "incompatible with type" for consistency and clarity.
…eads to a type violation. When assigning to a local variable, the target expression is not "narrowed" to include the assigned type in this case. The new behavior applies this same behavior when assigning to instance or class variables. This addresses #7664. (#7669)
…rget TypedDicts to also support constrained TypeVars that use TypedDicts as value constraints. This addresses #7666. (#7670)
…pplying a `@property` decorator to a method that has already had a decorator applied to it. This addresses #7667. (#7671)
…nstraints expression, or default expression for a PEP-695 type parameter. At runtime, these are always evaluated in a deferred manner even if they are not quoted. Pyright now follows the runtime behavior. This addresses #7678.
… an abstract class is captured through a `type[T]`. This addresses #7680. (#7681)
…when evaluating constructor call so pyright conforms to the latest typing spec. This addresses #7682. (#7690)
… in a type annotation for the "self" parameter within an "__init__" method. The typing spec now clarifies that this is illegal and should generate an error. This addresses #7683. (#7691)
…ramSpec type when there are multiple constraints provided. (#7692)
…incorrect results when binding a class object to a method in its metaclass. Also renamed the `treatConstructorAsClassMethod` parameter for clarity.
…a callable in prep for further bug fixes. No functional change.
…a function with a `NoReturn` return type to a `Callable[..., T]`.
…form to the newly-updated typing spec. This addresses #7684 and #7685. (#7693)
…signment expression is used in a dictionary key within a dictionary expression or comprehension. This addresses #7694. (#7696)
…` is a TypeVar with no explicit upper bound (and therefore has an implicit upper bound of `object`). According to the newly-clarified typing spec, this should enforce the constructor signature of `object`. (#7697)
…me (now non-compliant) heuristics to reconcile a metaclass `__call__` method with a `__new__` method. The new behavior is now compliant with the typing spec.
…conform with the typing spec in the case where the `__new__` method of the class returns a value that indicates the `__init__` method should be ignored. This addresses #7686. (#7698)
…conform to honor the annotated type of `self` in the `__init__` method. This addresses #7688. (#7699)
…conform to honor return type of the `__new__` method. This addresses #7687. (#7701)
… from its parent class but doesn't provide a default value (where its parent does). This can result in a type violation if the parent's default value is not compatible with the child's (covariant) field type. This addresses #7702. (#7704)
…ances that involve unions of TypeVars in an invariant context. This addresses #6957. (#7709)
# Conflicts:
#	packages/pyright-internal/package-lock.json
#	packages/pyright-internal/package.json
#	packages/pyright/package-lock.json
#	packages/pyright/package.json
#	packages/vscode-pyright/package.json
Copy link
Contributor

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

alectryon (https://github.com/cpitclaudel/alectryon)
-     Type "Unknown | None" cannot be assigned to type "str"
+     Type "Unknown | None" is incompatible with type "str"
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:148:40 - error: Cannot access member "rawsource" for type "Node"
+   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:148:40 - error: Cannot access attribute "rawsource" for class "Node"
-     Member "rawsource" is unknown (reportAttributeAccessIssue)
+     Attribute "rawsource" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:917:15 - error: Cannot assign member "name" for type "function"
+   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:917:15 - error: Cannot assign to attribute "name" for class "function"
-     Member "name" is unknown (reportFunctionMemberAccess)
+     Attribute "name" is unknown (reportFunctionMemberAccess)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:1232:19 - error: "_roles" is not a known member of module "docutils.parsers.rst.roles" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:1232:19 - error: "_roles" is not a known attribute of module "docutils.parsers.rst.roles" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:1408:17 - error: Cannot access member "apply_transforms" for type "object"
+   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:1408:17 - error: Cannot access attribute "apply_transforms" for class "object"
-     Member "apply_transforms" is unknown (reportAttributeAccessIssue)
+     Attribute "apply_transforms" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/alectryon/alectryon/minimal.py:39:34 - error: "body" is not a known member of module "docutils.parsers.rst.directives" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/alectryon/alectryon/minimal.py:39:34 - error: "body" is not a known attribute of module "docutils.parsers.rst.directives" (reportAttributeAccessIssue)

pyp (https://github.com/hauntsaninja/pyp)
-   /tmp/mypy_primer/projects/pyp/pyp.py:417:43 - error: Cannot access member "body" for type "stmt"
+   /tmp/mypy_primer/projects/pyp/pyp.py:417:43 - error: Cannot access attribute "body" for class "stmt"
-     Member "body" is unknown (reportAttributeAccessIssue)
+     Attribute "body" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pyp/tests/test_find_names.py:33:80 - error: "group" is not a known member of "None" (reportOptionalMemberAccess)
+   /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" cannot be assigned to declared type "str | None"
+   /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" cannot be assigned to type "str | None"
+     Type "bytes" is incompatible with type "str | None"

operator (https://github.com/canonical/operator)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1881:30 - error: Cannot access member "err" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1881:30 - error: Cannot access attribute "err" for class "Error"
-     Member "err" is unknown (reportAttributeAccessIssue)
+     Attribute "err" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1882:41 - error: Cannot access member "change" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1882:41 - error: Cannot access attribute "change" for class "Error"
-     Member "change" is unknown (reportAttributeAccessIssue)
+     Attribute "change" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1883:30 - error: Cannot access member "change" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:1883:30 - error: Cannot access attribute "change" for class "Error"
-     Member "change" is unknown (reportAttributeAccessIssue)
+     Attribute "change" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2312:30 - error: Cannot access member "kind" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2312:30 - error: Cannot access attribute "kind" for class "Error"
-     Member "kind" is unknown (reportAttributeAccessIssue)
+     Attribute "kind" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2313:30 - error: Cannot access member "message" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2313:30 - error: Cannot access attribute "message" for class "Error"
-     Member "message" is unknown (reportAttributeAccessIssue)
+     Attribute "message" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2725:30 - error: Cannot access member "kind" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2725:30 - error: Cannot access attribute "kind" for class "Error"
-     Member "kind" is unknown (reportAttributeAccessIssue)
+     Attribute "kind" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2726:30 - error: Cannot access member "message" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2726:30 - error: Cannot access attribute "message" for class "Error"
-     Member "message" is unknown (reportAttributeAccessIssue)
+     Attribute "message" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2776:30 - error: Cannot access member "kind" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2776:30 - error: Cannot access attribute "kind" for class "Error"
-     Member "kind" is unknown (reportAttributeAccessIssue)
+     Attribute "kind" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2777:30 - error: Cannot access member "message" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:2777:30 - error: Cannot access attribute "message" for class "Error"
-     Member "message" is unknown (reportAttributeAccessIssue)
+     Attribute "message" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3089:34 - error: Cannot access member "code" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3089:34 - error: Cannot access attribute "code" for class "Error"
-     Member "code" is unknown (reportAttributeAccessIssue)
+     Attribute "code" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3090:34 - error: Cannot access member "status" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3090:34 - error: Cannot access attribute "status" for class "Error"
-     Member "status" is unknown (reportAttributeAccessIssue)
+     Attribute "status" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3091:34 - error: Cannot access member "message" for type "Error"
+   /tmp/mypy_primer/projects/operator/test/test_pebble.py:3091:34 - error: Cannot access attribute "message" for class "Error"
-     Member "message" is unknown (reportAttributeAccessIssue)
+     Attribute "message" is unknown (reportAttributeAccessIssue)

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/annotations.py:1468:88 - error: Argument of type "type[<subclass of Enum and float>]* | type[<subclass of Enum and int>]* | type[<subclass of Enum and str>]*" cannot be assigned to parameter "enum" of type "(str) -> Enum" in function "__init__"
+     Type "type[<subclass of Enum and float>]* | type[<subclass of Enum and int>]* | type[<subclass of Enum and str>]*" is incompatible with type "(str) -> Enum"
+       No overloaded function matches type "(str) -> Enum" (reportArgumentType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:164:1 - warning: Type of "_MENU_TYPES" is partially unknown
+     Type of "_MENU_TYPES" is "frozenset[Unknown]" (reportUnknownVariableType)
-       Type "(_EventT@add_listener, ...) -> _CoroT[None]" cannot be assigned to type "(_EventT@add_listener, ...) -> _CoroT[None]"
+       Type "(_EventT@add_listener, ...) -> _CoroT[None]" is incompatible with type "(_EventT@add_listener, ...) -> _CoroT[None]"
-         Parameter 1: type "_EventT@add_listener" cannot be assigned to type "_EventT@add_listener"
+         Parameter 1: type "_EventT@add_listener" is incompatible with type "_EventT@add_listener"
-           Type "_EventT@add_listener" cannot be assigned to type "_EventT@add_listener" (reportIncompatibleMethodOverride)
+           Type "_EventT@add_listener" is incompatible with type "_EventT@add_listener" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2379:37 - error: "id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2379:37 - error: "id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2379:55 - error: "id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2379:55 - error: "id" is not a known attribute of "None" (reportOptionalMemberAccess)
-       Type "(_EventT@add_listener, ...) -> _CoroT[None]" cannot be assigned to type "(_EventT@add_listener, ...) -> _CoroT[None]"
+       Type "(_EventT@add_listener, ...) -> _CoroT[None]" is incompatible with type "(_EventT@add_listener, ...) -> _CoroT[None]"
-         Parameter 1: type "_EventT@add_listener" cannot be assigned to type "_EventT@add_listener"
+         Parameter 1: type "_EventT@add_listener" is incompatible with type "_EventT@add_listener"
-           Type "_EventT@add_listener" cannot be assigned to type "_EventT@add_listener" (reportIncompatibleMethodOverride)
+           Type "_EventT@add_listener" is incompatible with type "_EventT@add_listener" (reportIncompatibleMethodOverride)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/conversion.py:1043:13 - warning: Type of "results" is partially unknown
+     Type of "results" is "filter[Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/conversion.py:1044:13 - warning: Type of "other_ids_iter" is partially unknown
+     Type of "other_ids_iter" is "map[Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/conversion.py:1045:53 - warning: Argument type is partially unknown
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "map[Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:83:35 - warning: Argument type is partially unknown
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "map[Unknown | None]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:225:23 - error: "roles" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:225:23 - error: "roles" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:228:14 - error: "owner_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:228:14 - error: "owner_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:249:16 - error: "guild_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:249:16 - error: "guild_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:249:34 - error: "id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:249:34 - error: "id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:354:38 - error: "permission_overwrites" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/permissions.py:354:38 - error: "permission_overwrites" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/__init__.py:356:1 - warning: Type of "SUB_COMMAND_OPTION_TYPES" is partially unknown
+     Type of "SUB_COMMAND_OPTION_TYPES" is "frozenset[Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:47:1 - warning: Type of "_THREAD_CHANNEL_TYPES" is partially unknown
+     Type of "_THREAD_CHANNEL_TYPES" is "frozenset[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:94:16 - error: "type" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:94:16 - error: "type" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:99:20 - error: "parent_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:99:20 - error: "parent_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:100:77 - error: "parent_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:100:77 - error: "parent_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:105:56 - error: "parent_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:105:56 - error: "parent_id" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:108:55 - error: "parent_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/_internal/cache.py:108:55 - error: "parent_id" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/menu.py:325:1 - warning: Type of "_VALID_TYPES" is partially unknown
+     Type of "_VALID_TYPES" is "frozenset[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1433:49 - error: "name" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1433:49 - error: "name" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1459:45 - error: "name" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1459:45 - error: "name" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1461:55 - error: "name" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/commands/slash.py:1461:55 - error: "name" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/context/menu.py:56:1 - warning: Type of "_VALID_TYPES" is partially unknown
+     Type of "_VALID_TYPES" is "frozenset[Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/context/slash.py:68:1 - warning: Type of "_SnowflakeOptions" is partially unknown
+     Type of "_SnowflakeOptions" is "frozenset[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/dependencies/limiters.py:464:24 - error: "parent_id" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/dependencies/limiters.py:464:24 - error: "parent_id" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/dependencies/limiters.py:481:21 - warning: Type of "roles" is partially unknown
+     Type of "roles" is "filter[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/Tanjun/tests/dependencies/test_limiters.py:146:26 - error: Cannot access member "assert_awaited_once_with" for type "Unbound" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/Tanjun/tests/dependencies/test_limiters.py:146:26 - error: Cannot access attribute "assert_awaited_once_with" for class "Unbound" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/Tanjun/tests/dependencies/test_limiters.py:147:22 - error: Cannot access member "assert_awaited_once_with" for type "Unbound" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/Tanjun/tests/dependencies/test_limiters.py:147:22 - error: Cannot access attribute "assert_awaited_once_with" for class "Unbound" (reportAttributeAccessIssue)

... (truncated 10 lines) ...

mypy-protobuf (https://github.com/dropbox/mypy-protobuf)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:23:51 - error: "Channel" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:23:51 - error: "Channel" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:24:22 - error: "UnaryUnaryMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:24:22 - error: "UnaryUnaryMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:30:23 - error: "UnaryStreamMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:30:23 - error: "UnaryStreamMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:36:23 - error: "StreamUnaryMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:36:23 - error: "StreamUnaryMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:42:24 - error: "StreamStreamMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:42:24 - error: "StreamStreamMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:110:98 - error: "Server" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:110:98 - error: "Server" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:24:51 - error: "Channel" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:24:51 - error: "Channel" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:25:22 - error: "UnaryUnaryMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:25:22 - error: "UnaryUnaryMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:31:23 - error: "UnaryUnaryMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:31:23 - error: "UnaryUnaryMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:37:21 - error: "UnaryUnaryMultiCallable" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:37:21 - error: "UnaryUnaryMultiCallable" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:88:100 - error: "Server" is not a known member of module "grpc" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:88:100 - error: "Server" is not a known attribute of module "grpc" (reportAttributeAccessIssue)

AutoSplit (https://github.com/Toufool/AutoSplit)
-   /tmp/mypy_primer/projects/AutoSplit/src/menu_bar.py:118:37 - error: "start" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/AutoSplit/src/menu_bar.py:118:37 - error: "start" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/AutoSplit/src/capture_method/BitBltCaptureMethod.py:77:19 - error: "shape" is not a known member of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/AutoSplit/src/capture_method/BitBltCaptureMethod.py:77:19 - error: "shape" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/AutoSplit/src/capture_method/__init__.py:210:59 - error: Argument type is partially unknown
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "enumerate[Unknown]" (reportUnknownArgumentType)
- 516 errors, 38 warnings, 7 notes
+ 517 errors, 38 warnings, 7 notes

pandera (https://github.com/pandera-dev/pandera)
-     Type "Unknown | None" cannot be assigned to type "SchemaErrorReason"
+     Type "Unknown | None" is incompatible with type "SchemaErrorReason"
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:230:16 - error: Expression of type "list[Any]" cannot be assigned to declared type "Tuple[Any, ...]"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:230:16 - error: Expression of type "list[Any]" is incompatible with declared type "Tuple[Any, ...]"
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:253:24 - error: Expression of type "list[Any]" cannot be assigned to declared type "Tuple[Any, ...]"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:253:24 - error: Expression of type "list[Any]" is incompatible with declared type "Tuple[Any, ...]"
-   /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" cannot be assigned to 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: Any | None, 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" cannot be assigned to 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"
-   /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)" cannot be assigned to 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: 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"
-     Type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> (Coroutine[Any, Any, Unknown] | None)" cannot be assigned to 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 "None" cannot be assigned to type "Schemas | Tuple[OutputGetter, Schemas] | List[Tuple[OutputGetter, Schemas]]"
+     Type "None" is incompatible with type "Schemas | Tuple[OutputGetter, Schemas] | List[Tuple[OutputGetter, Schemas]]"
-   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:518:12 - error: Expression of type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" cannot be assigned to return type "(F@check_io) -> F@check_io"
+   /tmp/mypy_primer/projects/pandera/pandera/decorators.py:518: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"
-     Type "(fn: (...) -> Unknown, instance: Any | None, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Unknown" cannot be assigned to 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"
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:198:31 - error: "DataFrame" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:198:31 - error: "DataFrame" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:198:45 - error: "Series" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:198:45 - error: "Series" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:208:13 - error: "DataFrame" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:208:13 - error: "DataFrame" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:208:27 - error: "Series" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:208:27 - error: "Series" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:210:18 - error: "DataFrame" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:210:18 - error: "DataFrame" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:210:32 - error: "Series" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/extensions.py:210:32 - error: "Series" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:35:8 - error: "core" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:35:8 - error: "core" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:36:8 - error: "core" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:36:8 - error: "core" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:39:27 - error: "Series" is not a known member of module "pandas" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:39:27 - error: "Series" is not a known attribute of module "pandas" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/pandera/pandera/api/base/checks.py:39:48 - error: "Series" is not a known member of module "pandas" (reportAttributeAccessIssue)

... (truncated 861 lines) ...```

@DetachHead DetachHead merged commit f7af25f into main Apr 17, 2024
11 checks passed
@DetachHead DetachHead deleted the merge-1.1.359 branch April 17, 2024 01:03
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.

3 participants