DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
http://docs.basedpyright.com/
Other
613 stars 13 forks source link

Merge 1.1.364 #375

Closed DetachHead closed 1 month ago

github-actions[bot] commented 1 month ago

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