-
Notifications
You must be signed in to change notification settings - Fork 28
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.362 #340
Merged
Merged
Merge 1.1.362 #340
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…o avoid shadowing an outer-scoped variable. No functional change.
…ype consisting of a union of many (dozens or hundreds) of tuple types. This addresses #7813.
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rich Chiodo <rchiodo@users.noreply.github.com>
…tatement uses an empty (zero-element) sequence pattern and the subject expression type is a tuple that potentially (but does not always) have a zero length. This addresses #7826.
…when a generic class that uses PEP 695 syntax is located within an unreachable code block. This addresses #7828.
…(fall-through) case when a `match` statement includes a class pattern with a runtime-checkable protocol class. This addresses #7823. (#7829)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](mde/ejs@v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… incorrect type narrowing in the negative (else) case. This addresses #7837. (#7845)
…that uses a nonlocal or global binding within an inner scope. Such a variable should never honor the narrowed type from the outer scope. This addresses #7838. (#7846)
…mment. This addresses #7854. (#7856)
…ass is a generic whose type parameters have default values. This addresses #7855. (#7857)
…args: Any) to be `...` in compliance with latest typing spec. This addresses #7848. (#7859)
…n a `*args: P.args` parameter was used in the expression `len(args) >= x`. This addresses #7866.
…ultiple arguments is used in a value expression. It should be treated as a `UnionType` special form in this case. This addresses #7870.
…s that have `ABCMeta` as a metaclass. Previously, these were exempted from `__init_subclass__` because `ABCMeta` has a custom `__new__` method, but we know that this metaclass calls through to `type.__new__` which calls `__init_subclass__`. This addresses #7819. (#7871)
# Conflicts: # packages/pyright-internal/src/languageServerBase.ts # packages/pyright/package.json # packages/vscode-pyright/package.json
Diff from mypy_primer, showing the effect of this PR on open source code: pyp (https://github.com/hauntsaninja/pyp)
- Argument type is "(*args: Unknown, **kwargs: Unknown) -> None" (reportUnknownArgumentType)
+ Argument type is "(...) -> None" (reportUnknownArgumentType)
steam.py (https://github.com/Gobot1234/steam.py)
+ /tmp/mypy_primer/projects/steam.py/steam/abc.py:220:20 - error: Operator "<" not supported for "None" (reportOptionalOperand)
+ /tmp/mypy_primer/projects/steam.py/steam/abc.py:220:28 - error: Operator "<" not supported for types "datetime" and "datetime | None"
+ Operator "<" not supported for types "datetime" and "None" (reportOperatorIssue)
- /tmp/mypy_primer/projects/steam.py/steam/utils.py:868:12 - error: Expression of type "Any | _T@maybe_coroutine | Awaitable[_T@maybe_coroutine]" is incompatible with return type "_T@maybe_coroutine"
+ /tmp/mypy_primer/projects/steam.py/steam/utils.py:868:12 - error: Expression of type "Any | _T@maybe_coroutine | object*" is incompatible with return type "_T@maybe_coroutine"
- Type "Any | _T@maybe_coroutine | Awaitable[_T@maybe_coroutine]" is incompatible with type "_T@maybe_coroutine" (reportReturnType)
+ Type "Any | _T@maybe_coroutine | object*" is incompatible with type "_T@maybe_coroutine" (reportReturnType)
- 8494 errors, 89 warnings, 0 notes
+ 8496 errors, 89 warnings, 0 notes
pydantic (https://github.com/samuelcolvin/pydantic)
- /tmp/mypy_primer/projects/pydantic/pydantic/type_adapter.py:174:15 - warning: Type annotation for "self" parameter of "__init__" method cannot contain class-scoped type varaiables (reportInvalidTypeVarUse)
+ /tmp/mypy_primer/projects/pydantic/pydantic/type_adapter.py:174:15 - warning: Type annotation for "self" parameter of "__init__" method cannot contain class-scoped type variables (reportInvalidTypeVarUse)
spack (https://github.com/spack/spack)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:839:36 - error: Argument of type "Unknown | _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" cannot be assigned to parameter "s" of type "FileDescriptorOrPath" in function "isdir" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:839:36 - error: Argument of type "Unknown | _Wrapped[..., Unknown, ..., Unknown]" cannot be assigned to parameter "s" of type "FileDescriptorOrPath" in function "isdir" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1037:2 - error: Argument of type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1037:2 - error: Argument of type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
- Type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Type "(func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "(func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Function return type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
+ Function return type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
- "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
+ "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1057:2 - error: Argument of type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1057:2 - error: Argument of type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
- Type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Type "(func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "(func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Function return type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
+ Function return type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
- "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
+ "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1134:2 - error: Argument of type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1134:2 - error: Argument of type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
- Type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Type "(func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "(func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Function return type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
+ Function return type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
- "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
+ "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1479:39 - error: Argument of type "Unknown | _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" cannot be assigned to parameter "s" of type "FileDescriptorOrPath" in function "isdir" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1479:39 - error: Argument of type "Unknown | _Wrapped[..., Unknown, ..., Unknown]" cannot be assigned to parameter "s" of type "FileDescriptorOrPath" in function "isdir" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1625:2 - error: Argument of type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1625:2 - error: Argument of type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" cannot be assigned to parameter "func" of type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]" in function "contextmanager"
- Type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "_Wrapped[..., Unknown, ..., Unknown] | ((func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown])" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Type "(func: Unknown) -> _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
+ Type "(func: Unknown) -> _Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "(**_P@contextmanager) -> Iterator[_T_co@contextmanager]"
- Function return type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
+ Function return type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "Iterator[_T_co@contextmanager]"
- "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
+ "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with protocol "Iterator[_T_co@contextmanager]" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:2657:20 - error: "__getitem__" method not defined on type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" (reportIndexIssue)
... (truncated 159 lines) ...
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
- Type of "inner" is "(fn: () -> Unknown, status_reporter: SuppressableContextManager, /, *args: Unknown, **kwargs: Unknown) -> Unknown" (reportUnknownMemberType)
+ Type of "inner" is "(fn: () -> Unknown, status_reporter: SuppressableContextManager, /, ...) -> Unknown" (reportUnknownMemberType)
- Argument type is "_Wrapped[(), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" (reportUnknownArgumentType)
+ Argument type is "_Wrapped[(), Unknown, ..., Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:313:16 - error: Return type, "_Wrapped[(), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:313:16 - error: Return type, "_Wrapped[(), Unknown, ..., Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:614:16 - error: Return type, "_Wrapped[(), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:614:16 - error: Return type, "_Wrapped[(), Unknown, ..., Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/utils.py:47:16 - error: Return type, "_Wrapped[(() -> Unknown), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/utils.py:47:16 - error: Return type, "_Wrapped[(() -> Unknown), Unknown, ..., Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:585:12 - error: Return type, "_Wrapped[(), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:585:12 - error: Return type, "_Wrapped[(), Unknown, ..., Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_robot/test_keyword_decorator_and_other_decorator/foo.py:19:12 - error: Return type, "_Wrapped[(), Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_robot/test_keyword_decorator_and_other_decorator/foo.py:19:12 - error: Return type, "_Wrapped[(), Unknown, ..., Unknown]", is partially unknown (reportUnknownVariableType)
trio (https://github.com/python-trio/trio)
- /tmp/mypy_primer/projects/trio/src/trio/testing/_raises_group.py:155:15 - error: Type annotation for "self" parameter of "__init__" method cannot contain class-scoped type varaiables (reportInvalidTypeVarUse)
+ /tmp/mypy_primer/projects/trio/src/trio/testing/_raises_group.py:155:15 - error: Type annotation for "self" parameter of "__init__" method cannot contain class-scoped type variables (reportInvalidTypeVarUse)
discord.py (https://github.com/Rapptz/discord.py)
+ /tmp/mypy_primer/projects/discord.py/discord/utils.py:696:25 - warning: Unnecessary "# type: ignore" comment
+ /tmp/mypy_primer/projects/discord.py/discord/utils.py:702:74 - error: Expression of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/app_commands/commands.py:906:32 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/app_commands/commands.py:1017:22 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/app_commands/commands.py:1311:22 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/ext/commands/bot.py:490:22 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/ext/commands/core.py:1288:26 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/ext/commands/hybrid.py:421:38 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
+ /tmp/mypy_primer/projects/discord.py/discord/ext/commands/hybrid.py:424:46 - error: Argument of type "(object: object) -> TypeIs[Awaitable[Any]]" cannot be assigned to parameter "check" of type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]" in function "async_all"
+ Type "(object: object) -> TypeIs[Awaitable[Any]]" is incompatible with type "(T@async_all | Awaitable[T@async_all]) -> TypeGuard[Awaitable[T@async_all]]"
+ Function return type "TypeIs[Awaitable[Any]]" is incompatible with type "TypeGuard[Awaitable[T@async_all]]"
+ "TypeIs[Awaitable[Any]]" is incompatible with "TypeGuard[Awaitable[T@async_all]]"
+ "bool" is incompatible with "TypeGuard[Awaitable[T@async_all]]" (reportArgumentType)
- 107 errors, 78 warnings, 0 notes
+ 115 errors, 79 warnings, 0 notes
freqtrade (https://github.com/freqtrade/freqtrade)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_calmar.py:24:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 7 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_max_drawdown.py:25:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 6 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_max_drawdown_relative.py:24:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 4 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_onlyprofit.py:20:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 4 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_profit_drawdown.py:22:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 4 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py:24:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 7 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe_daily.py:23:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 6 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_short_trade_dur.py:35:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 4 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sortino.py:24:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 7 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sortino_daily.py:23:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 6 (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/freqtrade/freqtrade/templates/sample_hyperopt_loss.py:38:9 - error: Method "hyperopt_loss_function" overrides class "IHyperOptLoss" in an incompatible manner
- Positional parameter count mismatch; base method has 8, but override has 8 (reportIncompatibleMethodOverride)
- 609 errors, 44 warnings, 0 notes
+ 598 errors, 44 warnings, 0 notes
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- Type of "instantiate" is "Overload[(config: _TightBind, *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> Any, (config: ConfigPath | type[ConfigPath], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> Path, (config: ConfigComplex | type[ConfigComplex], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> complex, (config: Just[T@instantiate] | type[Just[T@instantiate]], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> T@instantiate, (config: ZenPartialMixin[(...) -> T@instantiate] | HydraPartialMixin[(...) -> T@instantiate] | type[ZenPartialMixin[(...) -> T@instantiate]] | type[HydraPartialMixin[(...) -> T@instantiate]], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> Partial[T@instantiate], (config: Builds[(...) -> T@instantiate] | type[Builds[(...) -> T@instantiate]], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> T@instantiate, (config: HasTarget | Unknown | DataClass_ | type[DataClass_] | Dict[Any, Any] | List[Any], *args: Any, _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ..., **kwargs: Any) -> Any]" (reportUnknownVariableType)
+ Type of "instantiate" is "Overload[(config: _TightBind, ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> Any, (config: ConfigPath | type[ConfigPath], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> Path, (config: ConfigComplex | type[ConfigComplex], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> complex, (config: Just[T@instantiate] | type[Just[T@instantiate]], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> T@instantiate, (config: ZenPartialMixin[(...) -> T@instantiate] | HydraPartialMixin[(...) -> T@instantiate] | type[ZenPartialMixin[(...) -> T@instantiate]] | type[HydraPartialMixin[(...) -> T@instantiate]], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> Partial[T@instantiate], (config: Builds[(...) -> T@instantiate] | type[Builds[(...) -> T@instantiate]], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> T@instantiate, (config: HasTarget | Unknown | DataClass_ | type[DataClass_] | Dict[Any, Any] | List[Any], ..., _target_wrapper_: ((F@instantiate) -> F@instantiate) | None = ...) -> Any]" (reportUnknownVariableType)
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/_trace/tracer.py:1040:20 - error: Expression of type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with return type "AnyCallable@wrap_decorator"
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/_trace/tracer.py:1040:20 - error: Expression of type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with return type "AnyCallable@wrap_decorator"
- Type "_Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown]" is incompatible with type "AnyCallable@wrap_decorator" (reportReturnType)
+ Type "_Wrapped[..., Unknown, ..., Unknown]" is incompatible with type "AnyCallable@wrap_decorator" (reportReturnType)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_api_security/api_manager.py:78:9 - error: Method "_stop_service" overrides class "Service" in an incompatible manner
- Parameter "args" is missing in override
- Parameter "**kwargs" has no corresponding parameter (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_api_security/api_manager.py:82:9 - error: Method "_start_service" overrides class "Service" in an incompatible manner
- Parameter "args" is missing in override
- Parameter "**kwargs" has no corresponding parameter (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/debugging/_debugger.py:708:9 - error: Method "_stop_service" overrides class "Service" in an incompatible manner
- Parameter "args" is missing in override
- Parameter "**kwargs" has no corresponding parameter (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/debugging/_debugger.py:715:9 - error: Method "_start_service" overrides class "Service" in an incompatible manner
- Parameter "args" is missing in override
- Parameter "**kwargs" has no corresponding parameter (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/ext/ci_visibility/api.py:169:9 - error: Method "discover" overrides class "_CIVisibilityAPIBase" in an incompatible manner
- Positional parameter count mismatch; base method has 3, but override has 11
... (truncated 83 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.