-
Notifications
You must be signed in to change notification settings - Fork 38
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.394 #1060
Merged
Merged
Merge 1.1.394 #1060
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
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com>
…a `nonlocal` statement. This results in a runtime exception, so it should be reported as an error. This addresses #9817. (#9821)
…when accessing an attribute on a TypedDict that is shadowed by a TypedDict item. This addresses #9814. (#9822)
…n the dest type uses an unpacked TypedDict and the source does not accept `**kwargs`. The typing spec indicates that this should fail because TypedDicts are not closed. This addresses #9807. (#9824)
…the `pop` method to handle the case where the caller passes a key name that is not specified in the TypedDict definition. This addresses #9805. (#9825)
… but specify an `extra_items`. Also added check for cases where `closed` and `extra_items` are both specified. This addresses #9804. (#9827)
…class variable assigned a value as part of a tuple expression target with an unpack operator (e.g. `a, *self.b = (1, 2, 3)`). This addresses #9841. (#9844)
…ariables (either local or class-scoped) that are the target of an augmented assignment. This addresses #9842. (#9846)
…o `types.CoroutineType` for improved type accuracy. (#9850)
…y overlapping overloads that have keyword parameters with default argument values. This addresses #9840. (#9852)
… error when a non-overloaded function uses a decorator that changes its type to a an overloaded function. This addresses #9803. (#9853)
…single quote has a newline character within it. This results in a syntax error at runtime. This addresses #9789. (#9856)
…ing a call expression that targets an overloaded method and one of the arguments is an enum with more than 64 members. This addresses #9784. (#9858)
…rror under certain circumstances involving recursive types. This addresses #9572. (#9860)
…inal`. This addresses #9795. (#9862)
…rotocol matching. This allows protocols with overloaded methods to contribute independent constraint sets. This addresses #9835. (#9864)
…uple of indeterminate length to a zero-length tuple target. This addresses #9866. (#9867)
…ng the `x in y` type guard pattern. The `in` operator uses equality checks, and `__eq__` can succeed for objects of disjoint types, which means disjointedness cannot be used as the basis for narrowing here. This change also affects the `reportUnnecessaryContains` check, which leverages the same logic. This addresses #9338. (#9868)
…lback protocol. This addresses #9878. (#9879)
…rget certain overloads that include an `*args` parameter in the fallback (the last overload). In particular, this affected the `zip` constructor. This addresses #9876. (#9882)
…TypedDict`. This addresses #9884. (#9885)
* Update CHANGELOG.md * Update typeEvaluator.ts
…or function that uses PEP 695 type parameter syntax. This addresses microsoft/pylance-release#6893. (#9893)
# Conflicts: # .github/workflows/validation.yml # lerna.json # packages/pyright-internal/package-lock.json # packages/pyright-internal/src/analyzer/checker.ts # packages/pyright-internal/src/analyzer/codeFlowEngine.ts # packages/pyright-internal/src/localization/package.nls.ru.json # packages/pyright-internal/src/localization/package.nls.zh-cn.json # packages/pyright/package-lock.json # packages/pyright/package.json # packages/vscode-pyright/CHANGELOG.md # packages/vscode-pyright/package-lock.json # packages/vscode-pyright/package.json
1a712f9
to
107fdd7
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: kornia (https://github.com/kornia/kornia)
+ /tmp/mypy_primer/projects/kornia/kornia/augmentation/_2d/geometric/resize.py:90:31 - warning: Type of "name" is Any (reportAny)
+ /tmp/mypy_primer/projects/kornia/kornia/augmentation/_2d/geometric/resize.py:90:31 - warning: Type of "lower" is Any (reportAny)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:93:29 - warning: Argument type is partially unknown
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:93:29 - warning: Argument type is unknown
- Argument corresponds to parameter "name" in function "setattr"
+ Argument corresponds to parameter "name" in function "setattr" (reportUnknownArgumentType)
- Argument type is "str | Unknown" (reportUnknownArgumentType)
- 6229 errors, 46954 warnings, 0 notes
+ 6229 errors, 46956 warnings, 0 notes
steam.py (https://github.com/Gobot1234/steam.py)
- Type of "id64_from_url" is "(url: Unknown | str, /, session: Unknown | None = None) -> Coroutine[Any, Any, ID64 | None]" (reportUnknownMemberType)
+ Type of "id64_from_url" is "(url: Unknown | str, /, session: Unknown | None = None) -> CoroutineType[Any, Any, ID64 | None]" (reportUnknownMemberType)
- Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> Coroutine[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
+ Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> CoroutineType[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
- Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> Coroutine[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
+ Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> CoroutineType[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/app.py:1126:16 - error: Type "list[FetchedAppPackage] | list[PartialPackage[None] | FetchedAppPackage]" is not assignable to return type "list[FetchedAppPackage]"
+ Type "list[FetchedAppPackage] | list[PartialPackage[None] | FetchedAppPackage]" is not assignable to type "list[FetchedAppPackage]"
+ "list[PartialPackage[None] | FetchedAppPackage]" is not assignable to "list[FetchedAppPackage]"
+ Type parameter "_T@list" is invariant, but "PartialPackage[None] | FetchedAppPackage" is not the same as "FetchedAppPackage"
+ Consider switching from "list" to "Sequence" which is covariant (reportReturnType)
+ /tmp/mypy_primer/projects/steam.py/steam/app.py:1806:16 - error: Type "list[FetchedAppPackage] | list[PartialPackage[None] | FetchedAppPackage]" is not assignable to return type "list[FetchedAppPackage]"
+ Type "list[FetchedAppPackage] | list[PartialPackage[None] | FetchedAppPackage]" is not assignable to type "list[FetchedAppPackage]"
+ "list[PartialPackage[None] | FetchedAppPackage]" is not assignable to "list[FetchedAppPackage]"
+ Type parameter "_T@list" is invariant, but "PartialPackage[None] | FetchedAppPackage" is not the same as "FetchedAppPackage"
+ Consider switching from "list" to "Sequence" which is covariant (reportReturnType)
- Type of "edit" is "(self: PartialClan, *, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, avatar: Media | None = None) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "edit" is "(self: PartialClan, *, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
- Type of "edit" is "(*, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, name: str | None = None, tagline: str | None = None, avatar: Media | None = None) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "edit" is "(*, abbreviation: str | None = None, headline: str | None = None, summary: str | None = None, community_url: Unknown | str | None = None, language: Language | None = None, country: str | None = None, state: str | None = None, city: str | None = None, apps: Iterable[App[str | None]] | None = None, name: str | None = None, tagline: str | None = None, avatar: Media | None = None) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
- Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> Coroutine[Any, Any, Any]" (reportUnknownMemberType)
+ Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> CoroutineType[Any, Any, Any]" (reportUnknownMemberType)
- Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> Coroutine[Any, Any, Any]" (reportUnknownMemberType)
+ Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> CoroutineType[Any, Any, Any]" (reportUnknownMemberType)
- Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> Coroutine[Any, Any, Any]" (reportUnknownMemberType)
+ Type of "request" is "(method: str, url: Unknown | str, /, api_needs_auth: bool = True, supports_access_token: bool = True, **kwargs: Any) -> CoroutineType[Any, Any, Any]" (reportUnknownMemberType)
- Type of "from_url" is "(url: Unknown | str, /, session: Unknown | None = None) -> Coroutine[Any, Any, ID[Literal[Type.Individual, Type.Clan]] | None]" (reportUnknownMemberType)
+ Type of "from_url" is "(url: Unknown | str, /, session: Unknown | None = None) -> CoroutineType[Any, Any, ID[Literal[Type.Individual, Type.Clan]] | None]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:701:9 - error: Overload 3 for "command" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:744:9 - error: Overload 3 for "group" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:799:5 - error: Overload 3 for "command" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:848:5 - error: Overload 3 for "group" will never be used because its parameters overlap overload 2 (reportOverlappingOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/csgo/state.py:210:21 - error: Argument of type "int" cannot be assigned to parameter "key" of type "AssetID" in function "__delitem__"
+ "int" is not assignable to "AssetID" (reportArgumentType)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/csgo/state.py:211:21 - error: Argument of type "int" cannot be assigned to parameter "key" of type "AssetID" in function "__delitem__"
+ "int" is not assignable to "AssetID" (reportArgumentType)
- 8559 errors, 96 warnings, 0 notes
+ 8567 errors, 96 warnings, 0 notes
psycopg (https://github.com/psycopg/psycopg)
+ /tmp/mypy_primer/projects/psycopg/docs/lib/pg3_docs.py:94:38 - warning: Type of "object" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/docs/lib/pg3_docs.py:99:38 - warning: Type of "parent" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_copy_base.py:291:18 - warning: Type annotation for attribute `_write_buffer` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_copy_base.py:296:26 - warning: Type annotation for attribute `_write_buffer` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/cursor.py:227:14 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/cursor.py:194:18 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/cursor_async.py:237:14 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/cursor_async.py:202:18 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/server_cursor.py:313:18 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/server_cursor.py:349:18 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/server_cursor.py:445:18 - warning: Type annotation for attribute `_pos` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:105:34 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:111:13 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:111:18 - warning: Type annotation for attribute `_nconns` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:132:13 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:178:21 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:100:34 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:106:13 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:106:18 - warning: Type annotation for attribute `_nconns` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:128:13 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:175:21 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:299:14 - warning: Type annotation for attribute `_nconns` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:402:24 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:402:24 - warning: Argument type is unknown
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool_async.py:327:14 - warning: Type annotation for attribute `_nconns` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool_async.py:437:24 - warning: Type of "_nconns" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool_async.py:437:24 - warning: Argument type is unknown
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/psycopg/tests/_test_transaction.py:36:5 - warning: Return type, "set[Unknown] | Coroutine[Any, Any, set[Unknown]]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/psycopg/tests/_test_transaction.py:36:5 - warning: Return type, "set[Unknown] | CoroutineType[Any, Any, set[Unknown]]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/psycopg/tests/_test_transaction.py:50:16 - warning: Return type, "Coroutine[Any, Any, set[Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/_test_transaction.py:50:16 - warning: Return type, "CoroutineType[Any, Any, set[Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/fix_crdb.py:33:41 - warning: Argument type is unknown
+ Argument corresponds to parameter "key" in function "get" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/psycopg/tests/fix_crdb.py:44:32 - warning: Argument type is partially unknown
+ /tmp/mypy_primer/projects/psycopg/tests/fix_crdb.py:44:32 - warning: Argument type is unknown
- Argument corresponds to parameter "reason" in function "crdb_skip_message"
+ Argument corresponds to parameter "reason" in function "crdb_skip_message" (reportUnknownArgumentType)
- Argument type is "Unknown | str" (reportUnknownArgumentType)
- Type of "asleep" is "(s: Unknown) -> Coroutine[Any, Any, None]" (reportUnknownVariableType)
+ Type of "asleep" is "(s: Unknown) -> CoroutineType[Any, Any, None]" (reportUnknownVariableType)
- Type of "alist" is "(it: Unknown) -> Coroutine[Any, Any, list[Unknown]]" (reportUnknownVariableType)
+ Type of "alist" is "(it: Unknown) -> CoroutineType[Any, Any, list[Unknown]]" (reportUnknownVariableType)
- Type of "ensure_table_async" is "(cur: Unknown, tabledef: Unknown, name: str = "copy_in") -> Coroutine[Any, Any, None]" (reportUnknownVariableType)
+ Type of "ensure_table_async" is "(cur: Unknown, tabledef: Unknown, name: str = "copy_in") -> CoroutineType[Any, Any, None]" (reportUnknownVariableType)
- Type of "alist" is "(it: Unknown) -> Coroutine[Any, Any, list[Unknown]]" (reportUnknownVariableType)
+ Type of "alist" is "(it: Unknown) -> CoroutineType[Any, Any, list[Unknown]]" (reportUnknownVariableType)
- Type of "alist" is "(it: Unknown) -> Coroutine[Any, Any, list[Unknown]]" (reportUnknownVariableType)
+ Type of "alist" is "(it: Unknown) -> CoroutineType[Any, Any, list[Unknown]]" (reportUnknownVariableType)
- Type of "alist" is "(it: Unknown) -> Coroutine[Any, Any, list[Unknown]]" (reportUnknownVariableType)
+ Type of "alist" is "(it: Unknown) -> CoroutineType[Any, Any, list[Unknown]]" (reportUnknownVariableType)
- Type of "asleep" is "(s: Unknown) -> Coroutine[Any, Any, None]" (reportUnknownVariableType)
+ Type of "asleep" is "(s: Unknown) -> CoroutineType[Any, Any, None]" (reportUnknownVariableType)
- Argument type is "Coroutine[Any, Any, Unknown]" (reportUnknownArgumentType)
+ Argument type is "CoroutineType[Any, Any, Unknown]" (reportUnknownArgumentType)
- Type of "cursors" is "list[Coroutine[Any, Any, Unknown]]" (reportUnknownVariableType)
+ Type of "cursors" is "list[CoroutineType[Any, Any, Unknown]]" (reportUnknownVariableType)
- Argument type is "Iterator[Coroutine[Any, Any, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "Iterator[CoroutineType[Any, Any, Unknown]]" (reportUnknownArgumentType)
- Argument type is "(value: Unknown) -> Coroutine[Any, Any, Unknown]" (reportUnknownArgumentType)
+ Argument type is "(value: Unknown) -> CoroutineType[Any, Any, Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/psycopg/tests/test_pipeline_async.py:605:32 - error: Cannot access attribute "fetchone" for class "Coroutine[Any, Any, Unknown]"
+ /tmp/mypy_primer/projects/psycopg/tests/test_pipeline_async.py:605:32 - error: Cannot access attribute "fetchone" for class "CoroutineType[Any, Any, Unknown]"
- Type of "cur" is "Unknown | Coroutine[Any, Any, Unknown]" (reportUnknownVariableType)
+ Type of "cur" is "Unknown | CoroutineType[Any, Any, Unknown]" (reportUnknownVariableType)
- Type of "insert_row" is "(conn: Unknown, value: Unknown) -> (Coroutine[Any, Any, None] | None)" (reportUnknownVariableType)
+ Type of "insert_row" is "(conn: Unknown, value: Unknown) -> (CoroutineType[Any, Any, None] | None)" (reportUnknownVariableType)
- Type of "inserted" is "(conn: Unknown) -> (set[Unknown] | Coroutine[Any, Any, set[Unknown]])" (reportUnknownVariableType)
+ Type of "inserted" is "(conn: Unknown) -> (set[Unknown] | CoroutineType[Any, Any, set[Unknown]])" (reportUnknownVariableType)
... (truncated 119 lines) ...
paasta (https://github.com/yelp/paasta)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:65:13 - warning: Return type, "_Wrapped[..., Unknown, (self: Unknown, ...), Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:65:13 - warning: Return type, "_Wrapped[..., Unknown, (self: Unknown, ...), CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:74:20 - warning: Return type, "_Wrapped[..., Unknown, (self: Unknown, ...), Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:74:20 - warning: Return type, "_Wrapped[..., Unknown, (self: Unknown, ...), CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:81:13 - warning: Return type, "_Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:81:13 - warning: Return type, "_Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:86:20 - warning: Return type, "_Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:86:20 - warning: Return type, "_Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:88:12 - warning: Return type, "((wrapped: Unknown) -> _Wrapped[..., Unknown, (self: Unknown, ...), Coroutine[Any, Any, Unknown]]) | ((wrapped: Unknown) -> _Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]])", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:88:12 - warning: Return type, "((wrapped: Unknown) -> _Wrapped[..., Unknown, (self: Unknown, ...), CoroutineType[Any, Any, Unknown]]) | ((wrapped: Unknown) -> _Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]])", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:102:9 - warning: Return type, "_Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:102:9 - warning: Return type, "_Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:107:16 - warning: Return type, "_Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:107:16 - warning: Return type, "_Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:109:12 - warning: Return type, "(wrapped: Unknown) -> _Wrapped[..., Unknown, ..., Coroutine[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/async_utils.py:109:12 - warning: Return type, "(wrapped: Unknown) -> _Wrapped[..., Unknown, ..., CoroutineType[Any, Any, Unknown]]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/check_spark_jobs.py:97:22 - error: "Coroutine[Any, Any, list[Framework]]" is not iterable
+ /tmp/mypy_primer/projects/paasta/paasta_tools/check_spark_jobs.py:97:22 - error: "CoroutineType[Any, Any, list[Framework]]" is not iterable
- Type of "get_spool" is "(spool_url: str) -> Coroutine[Any, Any, Unknown]" (reportUnknownVariableType)
+ Type of "get_spool" is "(spool_url: str) -> CoroutineType[Any, Any, Unknown]" (reportUnknownVariableType)
- Argument type is "(spool_url: str) -> Coroutine[Any, Any, Unknown]" (reportUnknownArgumentType)
+ Argument type is "(spool_url: str) -> CoroutineType[Any, Any, Unknown]" (reportUnknownArgumentType)
- Argument type is "(url: Unknown) -> Coroutine[Any, Any, Unknown]" (reportUnknownArgumentType)
+ Argument type is "(url: Unknown) -> CoroutineType[Any, Any, Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/drain_lib.py:235:70 - warning: Return type of lambda, "Coroutine[Any, Any, Unknown]", is partially unknown (reportUnknownLambdaType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/drain_lib.py:235:70 - warning: Return type of lambda, "CoroutineType[Any, Any, Unknown]", is partially unknown (reportUnknownLambdaType)
- Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
- Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
- Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
- Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> Coroutine[Any, Any, None]" (reportUnknownMemberType)
+ Type of "issue_request" is "(url_spec: Unknown, task: DrainTask@issue_request) -> CoroutineType[Any, Any, None]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/long_running_service_tools.py:114:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/long_running_service_tools.py:281:16 - error: Type "str | None" is not assignable to return type "str"
+ /tmp/mypy_primer/projects/paasta/paasta_tools/long_running_service_tools.py:281:16 - error: Type "str | Unknown | None" is not assignable to return type "str"
- Type "str | None" is not assignable to type "str"
+ Type "str | Unknown | None" is not assignable to type "str"
+ /tmp/mypy_primer/projects/paasta/paasta_tools/long_running_service_tools.py:281:16 - warning: Return type, "str | Unknown | None", is partially unknown (reportUnknownVariableType)
- Type of "fetch" is "(url: Unknown, **kwargs: Unknown) -> Coroutine[Any, Any, Unknown]" (reportUnknownMemberType)
+ Type of "fetch" is "(url: Unknown, **kwargs: Unknown) -> CoroutineType[Any, Any, Unknown]" (reportUnknownMemberType)
- Type of "all_slaves" is "Coroutine[Any, Any, Unknown]" (reportUnknownVariableType)
+ Type of "all_slaves" is "CoroutineType[Any, Any, Unknown]" (reportUnknownVariableType)
- Type of "fetch" is "(url: Unknown, **kwargs: Unknown) -> Coroutine[Any, Any, Unknown]" (reportUnknownMemberType)
+ Type of "fetch" is "(url: Unknown, **kwargs: Unknown) -> CoroutineType[Any, Any, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:656:18 - error: "Coroutine[Any, Any, list[Framework]]" is not iterable
+ /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:656:18 - error: "CoroutineType[Any, Any, list[Framework]]" is not iterable
- Type of "teardown" is "Coroutine[Any, Any, Unknown]" (reportUnknownVariableType)
+ Type of "teardown" is "CoroutineType[Any, Any, Unknown]" (reportUnknownVariableType)
- Type of "teardown" is "(framework_id: Unknown) -> Coroutine[Any, Any, Unknown]" (reportUnknownMemberType)
+ Type of "teardown" is "(framework_id: Unknown) -> CoroutineType[Any, Any, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:690:17 - error: Cannot access attribute "status_code" for class "Coroutine[Any, Any, Unknown]"
+ /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:690:17 - error: Cannot access attribute "status_code" for class "CoroutineType[Any, Any, Unknown]"
- /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:693:24 - error: Cannot access attribute "text" for class "Coroutine[Any, Any, Unknown]"
+ /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:693:24 - error: Cannot access attribute "text" for class "CoroutineType[Any, Any, Unknown]"
- /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:705:24 - error: "Coroutine[Any, Any, list[Framework]]" is not iterable
+ /tmp/mypy_primer/projects/paasta/paasta_tools/paasta_remote_run.py:705:24 - error: "CoroutineType[Any, Any, list[Framework]]" is not iterable
- /tmp/mypy_primer/projects/paasta/paasta_tools/setup_kubernetes_job.py:145:8 - warning: Expression will always evaluate to False since the types "tuple[Literal[False], None]" and "Tuple[bool, KubernetesDeploymentConfig | EksDeploymentConfig]" have no overlap (reportUnnecessaryContains)
- /tmp/mypy_primer/projects/paasta/paasta_tools/api/views/instance.py:373:13 - error: Argument of type "Coroutine[Any, Any, Mapping[str, Any]]" cannot be assigned to parameter "m" of type "Iterable[tuple[str, Any]]" in function "update"
... (truncated 86 lines) ...
pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:10:13 - warning: Type annotation for attribute `classcount` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
+ /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:10:13 - error: Instance variable "classcount" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
- /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:10:13 - error: Cannot access attribute "classcount" for class "TestStateFullThing*"
- Attribute "classcount" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:10:13 - error: Cannot assign to attribute "classcount" for class "TestStateFullThing*"
- Attribute "classcount" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:13:13 - error: Cannot access attribute "classcount" for class "TestStateFullThing*"
- Attribute "classcount" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:13:13 - error: Cannot assign to attribute "classcount" for class "TestStateFullThing*"
- Attribute "classcount" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/pytest/doc/en/example/assertion/test_setup_flow_example.py:19:21 - error: Cannot access attribute "classcount" for class "TestStateFullThing*"
- Attribute "classcount" is unknown (reportAttributeAccessIssue)
... (truncated 3999 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.