-
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.364 #375
Merged
Merged
Merge 1.1.364 #375
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
…5 type alias uses a keyword as a name. This addresses #7933.
…to `super` call is an instance of a metaclass. This addresses #7931.
…ng an enum member from an instance of an enum class. This addresses #7926.
…able type is compatible with another callable type and the first has a `*args` parameter and the second has a single positional+keyword parameter. This addresses #7937. (#7938)
…alue` or `name` to avoid using the special-case logic for computing these types. This is done regardless of whether the class uses a custom metaclass. This addresses #7939. (#7941)
…aluation in certain cases involving codependent variables in a loop. This addresses #7466. (#7945)
… function that uses `TypeIs[type[T]]`. This addresses #7946. (#7947)
…y default. The "enableExperimentalFeatures" must now be enabled to use this feature. If and when PEP 712 is approved, we can move out of experimental.
…es when the converter refers to a generic class constructor. This addresses #7713.
…has a parameter with a generic type and a default argument value. This could lead to a typing hole when considering subtyping rules for callables. This addresses #7288. (#7954)
…error if the converter is `tuple`. This addresses microsoft/pylance-release#5391.
…eprecations (#7956)" This reverts commit 17921d4.
…ial case for dataclasses so `ClassVar` and `Final` can be used together to distinguish between a regular `Final` instance variable and a `ClassVar` that is also `Final`. This addresses #7959. (#7962)
…tions that involve nested protocols (such as `P[P[T]]`). This addresses #6767. (#7963)
…es an `*args: *Ts` parameter is passed as an argument to itself. This partially addresses #7141. (#7964)
…tion that returns a callable with a generic parameter type. This addresses #7718. (#7965)
…o textual format for diagnostic messages) so it better handles special forms like `Literal` or unions when used in a value expression. This partly addresses #7547.
…a value expression. This addresses #7547. (#7969)
# Conflicts: # packages/pyright-internal/src/tests/typeEvaluator2.test.ts # packages/pyright/package-lock.json # 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)
+ /tmp/mypy_primer/projects/pyp/pyp.py:585:18 - error: Cannot assign to attribute "lineno" for class "AST"
+ Attribute "lineno" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/pyp/pyp.py:586:18 - error: Cannot assign to attribute "end_lineno" for class "AST"
+ Attribute "end_lineno" is unknown (reportAttributeAccessIssue)
- 273 errors, 0 warnings, 0 notes
+ 275 errors, 0 warnings, 0 notes
pyinstrument (https://github.com/joerick/pyinstrument)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
- Type of "add_option" is "Overload[(opt: Option) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
+ Type of "add_option" is "Overload[(opt: Option, /) -> Option, (arg: str, /, *args: str | None, **kwargs: Unknown) -> Option]" (reportUnknownMemberType)
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2764:9 - error: Overloaded implementation is not consistent with signature of overload 1
+ Type "(self: Self@Client, type_: type[_T@get_type_dependency], /, *, default: _DefaultT@get_type_dependency = tanjun.NO_DEFAULT) -> (_T@get_type_dependency | _DefaultT@get_type_dependency)" is incompatible with type "(self: Self@Client, type_: type[_T@get_type_dependency], /) -> _T@get_type_dependency"
+ Type "NoDefault" is incompatible with type "_DefaultT@get_type_dependency" (reportInconsistentOverload)
- 2415 errors, 6681 warnings, 0 notes
+ 2416 errors, 6681 warnings, 0 notes
spack (https://github.com/spack/spack)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/colify.py:150:39 - error: "isatty" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/colify.py:174:16 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/colify.py:180:24 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/colify.py:184:24 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/colify.py:186:16 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/color.py:260:31 - error: Argument of type "bool | Unknown | None" cannot be assigned to parameter "color" of type "bool" in function "_escape"
+ Type "bool | Unknown | None" is incompatible with type "bool"
+ "None" is incompatible with "bool" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/color.py:266:78 - error: Argument of type "bool | Unknown | None" cannot be assigned to parameter "color" of type "bool" in function "_escape"
+ Type "bool | Unknown | None" is incompatible with type "bool"
+ "None" is incompatible with "bool" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/color.py:268:51 - error: Argument of type "bool | Unknown | None" cannot be assigned to parameter "color" of type "bool" in function "_escape"
+ Type "bool | Unknown | None" is incompatible with type "bool"
+ "None" is incompatible with "bool" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:632:21 - error: Argument of type "int | TextIO" cannot be assigned to parameter "fd" of type "int" in function "dup2"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:632:21 - error: Argument of type "int | TextIO | Any" cannot be assigned to parameter "fd" of type "int" in function "dup2"
- Type "int | TextIO" is incompatible with type "int"
+ Type "int | TextIO | Any" is incompatible with type "int"
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:633:22 - error: Argument of type "int | TextIO" cannot be assigned to parameter "fd" of type "int" in function "close"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:633:22 - error: Argument of type "int | TextIO | Any" cannot be assigned to parameter "fd" of type "int" in function "close"
- Type "int | TextIO" is incompatible with type "int"
+ Type "int | TextIO | Any" is incompatible with type "int"
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:635:21 - error: Argument of type "int | TextIO" cannot be assigned to parameter "fd" of type "int" in function "dup2"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:635:21 - error: Argument of type "int | TextIO | Any" cannot be assigned to parameter "fd" of type "int" in function "dup2"
- Type "int | TextIO" is incompatible with type "int"
+ Type "int | TextIO | Any" is incompatible with type "int"
- /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:636:22 - error: Argument of type "int | TextIO" cannot be assigned to parameter "fd" of type "int" in function "close"
+ /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/tty/log.py:636:22 - error: Argument of type "int | TextIO | Any" cannot be assigned to parameter "fd" of type "int" in function "close"
- Type "int | TextIO" is incompatible with type "int"
+ Type "int | TextIO | Any" is incompatible with type "int"
- /tmp/mypy_primer/projects/spack/lib/spack/spack/builder.py:365:52 - error: Expected class type as first argument to "super" call but received "type[Unknown]" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/graph.py:572:9 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/graph.py:601:9 - error: "write" is not a known attribute of "None" (reportOptionalMemberAccess)
- /tmp/mypy_primer/projects/spack/lib/spack/spack/repo.py:146:58 - error: Argument of type "RepoLoader | SpackNamespaceLoader" cannot be assigned to parameter "loader" of type "Loader | None" in function "spec_from_loader" (reportArgumentType)
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/repo.py:146:58 - error: Argument of type "RepoLoader | SpackNamespaceLoader" cannot be assigned to parameter "loader" of type "LoaderProtocol | None" in function "spec_from_loader" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/lib/spack/spack/util/debug.py:72:50 - error: Argument of type "int | None" cannot be assigned to parameter "fd" of type "int" in function "fdopen"
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/util/debug.py:72:50 - error: Argument of type "int | Any | None" cannot be assigned to parameter "fd" of type "int" in function "fdopen"
- Type "int | None" is incompatible with type "int"
+ Type "int | Any | None" is incompatible with type "int"
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/extrae/package.py:128:57 - error: Argument of type "str | Unknown | HeaderList" cannot be assigned to parameter "p" of type "AnyOrLiteralStr@dirname" in function "dirname"
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/extrae/package.py:128:57 - error: Argument of type "str | Unknown | HeaderList" cannot be assigned to parameter "p" of type "AnyOrLiteralStr(1)@dirname" in function "dirname"
- Type "str | Unknown | HeaderList" is incompatible with constrained type variable "AnyOrLiteralStr" (reportArgumentType)
+ Type "str | Unknown | HeaderList" is incompatible with constrained type variable "AnyOrLiteralStr(1)" (reportArgumentType)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/redis-ai/package.py:123:74 - error: Argument of type "Unknown | None" cannot be assigned to parameter "p" of type "AnyOrLiteralStr@dirname" in function "dirname"
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/redis-ai/package.py:123:74 - error: Argument of type "Unknown | None" cannot be assigned to parameter "p" of type "AnyOrLiteralStr(2)@dirname" in function "dirname"
- Type "Unknown | None" is incompatible with constrained type variable "AnyOrLiteralStr" (reportArgumentType)
+ Type "Unknown | None" is incompatible with constrained type variable "AnyOrLiteralStr(2)" (reportArgumentType)
- 22671 errors, 78 warnings, 0 notes
+ 22680 errors, 78 warnings, 0 notes
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/pytest/plugin.py:149:13 - error: Argument type is unknown
+ Argument corresponds to parameter "value" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/pytest/plugin.py:163:13 - error: Argument type is unknown
+ Argument corresponds to parameter "value" in function "__init__" (reportUnknownArgumentType)
- 2066 errors, 0 warnings, 0 notes
+ 2068 errors, 0 warnings, 0 notes
bidict (https://github.com/jab/bidict)
+ /tmp/mypy_primer/projects/bidict/tests/bidict_test_fixtures.py:85:1 - error: Type of "mutable_bidict_types" is partially unknown
+ Type of "mutable_bidict_types" is "tuple[type[bidict[Unknown, Unknown]] | type[OrderedBidict[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- 660 errors, 0 warnings, 0 notes
+ 661 errors, 0 warnings, 0 notes
PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:980:21 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:980:21 - error: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:981:13 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:981:13 - error: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:982:13 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:982:13 - error: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:983:13 - error: Result of call expression is of type "Any | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:986:9 - error: Result of call expression is of type "int" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:986:9 - error: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_main.py:987:9 - error: Result of call expression is of type "Any | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- 1354 errors, 0 warnings, 0 notes
+ 1356 errors, 0 warnings, 0 notes
antidote (https://github.com/Finistere/antidote)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Keyword parameter "self" is missing in source
- Position-only parameter mismatch; parameter "self" is not position-only
+ Position-only parameter mismatch; parameter "self" is not position-only
- Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
+ Position-only parameter mismatch; expected 1 but received 0 (reportInconsistentOverload)
xarray-dataclasses (https://github.com/astropenguin/xarray-dataclasses)
- Type of "testdata_dtype" is "list[tuple[type[Labeled[Any]] | type[Collection[Any]] | Any, None] | tuple[type[Labeled[Any]] | type[Collection[None]] | type[None], None] | tuple[type[Labeled[Any]] | type[Collection[int]] | type[int], Unknown] | tuple[type[Labeled[Any]] | type[Collection[Literal['i8']]] | type[Literal['i8']], Unknown] | tuple[type[Labeled[Any]] | type[Collection[float]] | type[float], Unknown] | tuple[type[Labeled[Any]] | type[Collection[float]] | type[float] | Any, Unknown]]" (reportUnknownVariableType)
+ Type of "testdata_dtype" is "list[tuple[type[Labeled[Any]] | type[Collection[Any]] | Any, None] | tuple[type[Labeled[Any]] | type[Collection[None]] | type[None], None] | tuple[type[Labeled[Any]] | type[Collection[int]] | type[int], Unknown] | tuple[type[Labeled[Any]] | type[Collection[Literal['i8']]] | type[Literal['i8']], Unknown] | tuple[type[Labeled[Any]] | type[Collection[float]] | type[float], Unknown] | tuple[UnionType, Unknown]]" (reportUnknownVariableType)
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/pybind11/setup_helpers.py:496:26 - error: Argument of type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool = ..., extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" cannot be assigned to parameter "object" of type "CCompilerMethod" in function "append"
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/pybind11/setup_helpers.py:496:26 - error: Argument of type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool | Literal[0, 1] = 0, extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" cannot be assigned to parameter "object" of type "CCompilerMethod" in function "append"
- Type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool = ..., extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" is incompatible with type "CCompilerMethod"
+ Type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool | Literal[0, 1] = 0, extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" is incompatible with type "CCompilerMethod"
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/algorithms.pyi:50:5 - error: Overload 2 for "factorize" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
- /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/algorithms.pyi:59:5 - error: Overload 3 for "factorize" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/groupby/generic.pyi:210:116 - error: Unnecessary "# pyright: ignore" rule: "reportOverlappingOverload" (reportUnnecessaryTypeIgnoreComment)
- /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/indexes/interval.pyi:392:5 - error: Overload 9 for "interval_range" will never be used because its parameters overlap overload 7 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/indexes/interval.pyi:373:5 - error: Overload 7 for "interval_range" overlaps overload 10 and returns an incompatible type (reportOverlappingOverload)
- /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/indexes/interval.pyi:421:5 - error: Overload 12 for "interval_range" will never be used because its parameters overlap overload 7 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/pandas-stubs/pandas-stubs/core/indexes/interval.pyi:421:5 - error: Overload 12 for "interval_range" will never be used because its parameters overlap overload 9 (reportOverlappingOverload)
- 1456 errors, 0 warnings, 0 notes
+ 1455 errors, 0 warnings, 0 notes
|
13 tasks
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.