Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 1.1.377 #601

Merged
merged 15 commits into from
Aug 21, 2024
Merged

Merge 1.1.377 #601

merged 15 commits into from
Aug 21, 2024

Conversation

DetachHead
Copy link
Owner

@DetachHead DetachHead commented Aug 21, 2024

fixes #599

erictraut and others added 14 commits August 13, 2024 21:59
…ParamSpec without a scope is used illegally to specialize a class. This addresses #8757. (#8768)
…TypeGuard[T]` or `TypeIs[T]` to a supertype of `bool` (like `int`). This addresses #8769. (#8771)
…ds` CLI options are used together. This addresses #8775. (#8776)
…ic conditions involving a function decorator with an return type inferred from an inner function parameterized by a ParamSpec. This addresses #8779. (#8780)
…ons in function signatures, including synthesized signatures (such as `__init__` methods in dataclasses). This allows the original default value expression to be printed in error messages and language server strings. This addresses #8781. (#8783)
…conditions involving a recursive type alias that is defined in terms of another type alias. This addresses #8784. (#8785)
# Conflicts:
#	packages/pyright-internal/src/analyzer/typeEvaluator.ts
#	packages/pyright-internal/src/backgroundThreadBase.ts
#	packages/pyright/package-lock.json
#	packages/pyright/package.json
#	packages/vscode-pyright/package.json
…ere unreachable diagnostics are now reported in unreachable cases

This comment has been minimized.

Copy link
Contributor

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

pyinstrument (https://github.com/joerick/pyinstrument)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time_asyncio" is "(loop: Unknown | None = ...) -> _GeneratorContextManager[FakeClockAsyncio]" (reportUnknownVariableType)
+     Type of "fake_time_asyncio" is "(loop: Unknown | None = None) -> _GeneratorContextManager[FakeClockAsyncio]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
-     Type of "fake_time" is "(fake_clock: Unknown | None = ...) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)
+     Type of "fake_time" is "(fake_clock: Unknown | None = None) -> _GeneratorContextManager[Unknown | FakeClock]" (reportUnknownVariableType)

pycryptodome (https://github.com/Legrandin/pycryptodome)
-     Type of "mac_constructor" is "(data: Unknown | None = ...) -> Unknown" (reportUnknownVariableType)
+     Type of "mac_constructor" is "(data: Unknown | None = None) -> Unknown" (reportUnknownVariableType)
-     Type of "mac_constructor" is "(data: Unknown | None = ...) -> Unknown" (reportUnknownVariableType)
+     Type of "mac_constructor" is "(data: Unknown | None = None) -> Unknown" (reportUnknownVariableType)
-     Type of "mac_constructor" is "(data: Unknown | None = ...) -> Unknown" (reportUnknownVariableType)
+     Type of "mac_constructor" is "(data: Unknown | None = None) -> Unknown" (reportUnknownVariableType)
-     Type of "mac_constructor" is "(data: Unknown | None = ...) -> Unknown" (reportUnknownVariableType)
+     Type of "mac_constructor" is "(data: Unknown | None = None) -> Unknown" (reportUnknownVariableType)

poetry (https://github.com/python-poetry/poetry)
-     Type of "build_environment" is "(poetry: Poetry, env: Env | None = ..., io: Unknown | None = ...) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)
+     Type of "build_environment" is "(poetry: Poetry, env: Env | None = None, io: Unknown | None = None) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)
-     Type of "isolated_builder" is "(source: Path, distribution: Unknown = ..., python_executable: Path | None = ..., pool: RepositoryPool | None = ...) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
+     Type of "isolated_builder" is "(source: Path, distribution: Unknown = "wheel", python_executable: Path | None = None, pool: RepositoryPool | None = None) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
-     Type of "isolated_builder" is "(source: Path, distribution: Unknown = ..., python_executable: Path | None = ..., pool: RepositoryPool | None = ...) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
+     Type of "isolated_builder" is "(source: Path, distribution: Unknown = "wheel", python_executable: Path | None = None, pool: RepositoryPool | None = None) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
-     Type of "build_environment" is "(poetry: Poetry, env: Env | None = ..., io: Unknown | None = ...) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)
+     Type of "build_environment" is "(poetry: Poetry, env: Env | None = None, io: Unknown | None = None) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = ...) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
+     Type of "_cached_or_downloaded_file" is "(link: Unknown, *, raise_accepts_ranges: bool = False) -> _GeneratorContextManager[Path]" (reportUnknownMemberType)
-     Type of "isolated_builder" is "(source: Path, distribution: Unknown = ..., python_executable: Path | None = ..., pool: RepositoryPool | None = ...) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
+     Type of "isolated_builder" is "(source: Path, distribution: Unknown = "wheel", python_executable: Path | None = None, pool: RepositoryPool | None = None) -> _GeneratorContextManager[Unknown]" (reportUnknownVariableType)
-     Type of "build_environment" is "(poetry: Poetry, env: Env | None = ..., io: Unknown | None = ...) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)
+     Type of "build_environment" is "(poetry: Poetry, env: Env | None = None, io: Unknown | None = None) -> _GeneratorContextManager[Env]" (reportUnknownVariableType)

mypy (https://github.com/python/mypy)
+   /tmp/mypy_primer/projects/mypy/mypy/util.py:379:39 - error: Type of "y" is Any (reportAny)
- 16055 errors, 0 warnings, 0 notes
+ 16056 errors, 0 warnings, 0 notes

SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)

artigraph (https://github.com/artigraph/artigraph)
-     Argument type is "(i: Unknown = ...) -> tuple[Literal[True], Literal['']]" (reportUnknownArgumentType)
+     Argument type is "(i: Unknown = 5) -> tuple[Literal[True], Literal['']]" (reportUnknownArgumentType)

bandersnatch (https://github.com/pypa/bandersnatch)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:835:13 - error: Result of call expression is of type "(path: StrOrBytesPath, *, dir_fd: int | None = ...) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:835:13 - error: Result of call expression is of type "(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

sympy (https://github.com/sympy/sympy)
-     Type of "_construct_symbol" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_symbol" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_value" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_value" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_symbol" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_symbol" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_offset" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_offset" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_counter" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_counter" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_first" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_first" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_last" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_last" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_step" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_step" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_expr" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_expr" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_counter" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_counter" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_first" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_first" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_last" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_last" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_step" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_step" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_expr" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_expr" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_return_value" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_return_value" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_array" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_array" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_dim" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_dim" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_array" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_array" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_dim" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_dim" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_matrix" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_matrix" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)
-     Type of "_construct_vector" is "staticmethod[(a: Unknown, locals: Unknown | None = ..., convert_xor: bool = ..., strict: bool = ..., rational: bool = ..., evaluate: Unknown | None = ...), Unknown]" (reportUnknownVariableType)
+     Type of "_construct_vector" is "staticmethod[(a: Unknown, locals: Unknown | None = None, convert_xor: bool = True, strict: bool = False, rational: bool = False, evaluate: Unknown | None = None), Unknown]" (reportUnknownVariableType)

... (truncated 2745 lines) ...

ppb-vector (https://github.com/ppb/ppb-vector)
+   /tmp/mypy_primer/projects/ppb-vector/tests/test_pattern_matching.py:7:13 - error: Code is unreachable (reportUnreachable)
+   /tmp/mypy_primer/projects/ppb-vector/tests/test_pattern_matching.py:15:13 - error: Code is unreachable (reportUnreachable)
- 641 errors, 0 warnings, 0 notes
+ 643 errors, 0 warnings, 0 notes

websockets (https://github.com/aaugustin/websockets)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) (reportDeprecated)
+     Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) (reportDeprecated)
-     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = ..., resource_name: str = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[ClientConnection]" (reportUnknownVariableType)
+     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = None, resource_name: str = "/", **kwargs: Unknown) -> _AsyncGeneratorContextManager[ClientConnection]" (reportUnknownVariableType)
-     Type of "run_server" is "(handler: Unknown = ..., host: str = ..., port: int = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_server" is "(handler: Unknown = eval_shell, host: str = "localhost", port: int = 0, **kwargs: Unknown) -> _AsyncGeneratorContextManager[Server]" (reportUnknownVariableType)
-     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[Unknown]" (reportUnknownVariableType)
+     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = eval_shell, **kwargs: Unknown) -> _AsyncGeneratorContextManager[Unknown]" (reportUnknownVariableType)
-     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = ..., resource_name: str = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[ClientConnection]" (reportUnknownVariableType)
+     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = None, resource_name: str = "/", **kwargs: Unknown) -> _AsyncGeneratorContextManager[ClientConnection]" (reportUnknownVariableType)
-     Type of "run_server" is "(handler: Unknown = ..., host: str = ..., port: int = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_server" is "(handler: Unknown = eval_shell, host: str = "localhost", port: int = 0, **kwargs: Unknown) -> _AsyncGeneratorContextManager[Server]" (reportUnknownVariableType)
-     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = ..., **kwargs: Unknown) -> _AsyncGeneratorContextManager[Unknown]" (reportUnknownVariableType)
+     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = eval_shell, **kwargs: Unknown) -> _AsyncGeneratorContextManager[Unknown]" (reportUnknownVariableType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = ...) -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
+     Type of "assertInvalidResponseHeaders" is "(exc_type: Unknown, key: str = "CSIRmL8dWYxeAdr/XpEHRw==") -> _GeneratorContextManager[Headers]" (reportUnknownMemberType)
-     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = ..., resource_name: str = ..., **kwargs: Unknown) -> _GeneratorContextManager[Connection]" (reportUnknownVariableType)
+     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = None, resource_name: str = "/", **kwargs: Unknown) -> _GeneratorContextManager[Connection]" (reportUnknownVariableType)
-     Type of "run_server" is "(handler: Unknown = ..., host: str = ..., port: int = ..., **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_server" is "(handler: Unknown = eval_shell, host: str = "localhost", port: int = 0, **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
-     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = ..., **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = eval_shell, **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
-     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = ..., resource_name: str = ..., **kwargs: Unknown) -> _GeneratorContextManager[Connection]" (reportUnknownVariableType)
+     Type of "run_client" is "(wsuri_or_server: Unknown, secure: Unknown | None = None, resource_name: str = "/", **kwargs: Unknown) -> _GeneratorContextManager[Connection]" (reportUnknownVariableType)
-     Type of "run_server" is "(handler: Unknown = ..., host: str = ..., port: int = ..., **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_server" is "(handler: Unknown = eval_shell, host: str = "localhost", port: int = 0, **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
-     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = ..., **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)
+     Type of "run_unix_server" is "(path: Unknown, handler: Unknown = eval_shell, **kwargs: Unknown) -> _GeneratorContextManager[Server]" (reportUnknownVariableType)

cloud-init (https://github.com/canonical/cloud-init)
-   /tmp/mypy_primer/projects/cloud-init/setup.py:72:5 - error: Result of call expression is of type "(path: StrOrBytesPath, ignore_errors: bool = ..., *, onexc: _OnExcCallback | None = ..., dir_fd: int | None = ...) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 1306 lines) ...```

@DetachHead DetachHead merged commit eaad446 into main Aug 21, 2024
19 checks passed
@DetachHead DetachHead deleted the merge-1.1.377 branch August 21, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.1.377
2 participants