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.385 #782

Merged
merged 15 commits into from
Oct 16, 2024
Merged

Merge 1.1.385 #782

merged 15 commits into from
Oct 16, 2024

Conversation

DetachHead
Copy link
Owner

No description provided.

erictraut and others added 15 commits October 9, 2024 12:18
… in a value expression (not a type expression) with an unpack operator. This addresses #9194. (#9198)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
Co-authored-by: Stella Huang <stellahuang@microsoft.com>
Co-authored-by: Kacie Kang <jikang@microsoft.com>
…here a dataclass field has a default value where the expression requires bidirectional type inference for proper type evaluation. This addresses #9205. (#9210)
… a constructor for a class with a custom metaclass with a `__call__` method that has an unannotated return type if the arguments passed to the constructor are incorrect. This addresses #9200. (#9211)
…es `...` as a default value in a stub file. This addresses #9191. (#9212)
…igning a generic method within a class body. This addresses #9189. (#9213)
… a function with an `*args` parameter annotated with an unpacked `tuple`. This addresses #9183. (#9215)
…ield definition call to ensure that it's a valid Python identifier. This addresses #9220. (#9221)
… is annotated with a class-scoped type variable and includes a default value whose type require bidirectional type inference. This addresses #9222. (#9223)
…ive when accessing an attribute through a TypeVar with an upper bound. This addresses #9232. (#9233)
… method for a value used in an operand for an `or` or `and` operator. This addresses #9225. (#9234)
# Conflicts:
#	docs/configuration.md
#	packages/pyright-internal/src/localization/package.nls.zh-cn.json
#	packages/pyright/package-lock.json
#	packages/pyright/package.json
#	packages/vscode-pyright/package.json
Copy link
Contributor

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

psycopg (https://github.com/psycopg/psycopg)
-   /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/transaction.py:147:9 - error: Result of call expression is of type "bool*" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/transaction.py:147:9 - error: Result of call expression is of type "bool" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

paasta (https://github.com/yelp/paasta)
-   /tmp/mypy_primer/projects/paasta/paasta_tools/utils.py:231:16 - error: Return type, "tuple[tuple[Unknown, Unknown], ...]*", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/utils.py:231:16 - error: Return type, "tuple[tuple[Unknown, Unknown], ...]", is partially unknown (reportUnknownVariableType)
-     Argument type is "list[tuple[Unknown, Unknown]]*" (reportUnknownArgumentType)
+     Argument type is "list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
-     Argument type is "ItemsView[Unknown, Unknown]*" (reportUnknownArgumentType)
+     Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)

steam.py (https://github.com/Gobot1234/steam.py)
-   /tmp/mypy_primer/projects/steam.py/steam/app.py:767:16 - error: Type "Leaderboard[Self@PartialApp[NameT@PartialApp], DisplayNameT@Leaderboard]" is not assignable to return type "Leaderboard[Self@PartialApp[NameT@PartialApp], None]"
-     "Leaderboard[Self@PartialApp[NameT@PartialApp], DisplayNameT@Leaderboard]" is not assignable to "Leaderboard[Self@PartialApp[NameT@PartialApp], None]"
-       Type parameter "DisplayNameT@Leaderboard" is covariant, but "DisplayNameT@Leaderboard" is not a subtype of "None"
-         Type "str* | None" is not assignable to type "None"
-           "str*" is not assignable to "None" (reportReturnType)
-   /tmp/mypy_primer/projects/steam.py/steam/app.py:788:16 - error: Type "Leaderboard[Self@PartialApp[NameT@PartialApp], DisplayNameT@Leaderboard]" is not assignable to return type "Leaderboard[Self@PartialApp[NameT@PartialApp], None]"
-     "Leaderboard[Self@PartialApp[NameT@PartialApp], DisplayNameT@Leaderboard]" is not assignable to "Leaderboard[Self@PartialApp[NameT@PartialApp], None]"
-       Type parameter "DisplayNameT@Leaderboard" is covariant, but "DisplayNameT@Leaderboard" is not a subtype of "None"
-         Type "str* | None" is not assignable to type "None"
-           "str*" is not assignable to "None" (reportReturnType)
- /tmp/mypy_primer/projects/steam.py/steam/channel.py
-   /tmp/mypy_primer/projects/steam.py/steam/channel.py:40:9 - error: Argument of type "ClanT@Channel" cannot be assigned to parameter "clan" of type "None" in function "__init__"
-     Type "Clan* | None" is not assignable to type "None"
-       "Clan*" is not assignable to "None" (reportArgumentType)
-   /tmp/mypy_primer/projects/steam.py/steam/channel.py:40:9 - error: Argument of type "GroupT@Channel" cannot be assigned to parameter "group" of type "None" in function "__init__"
-     Type "Group* | None" is not assignable to type "None"
-       "Group*" is not assignable to "None" (reportArgumentType)
-     Type of "header" is "Unknown | MessageHeader*" (reportUnknownMemberType)
+     Type of "header" is "Unknown | MessageHeader" (reportUnknownMemberType)
-     Type of "job_id_target" is "Unknown | int* | Any" (reportUnknownMemberType)
+     Type of "job_id_target" is "Unknown | int | Any" (reportUnknownMemberType)
- 8494 errors, 98 warnings, 0 notes
+ 8490 errors, 98 warnings, 0 notes

openlibrary (https://github.com/internetarchive/openlibrary)
-       "page*" is not assignable to "admin"

ibis (https://github.com/ibis-project/ibis)
-     Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]*" (reportUnknownVariableType)
+     Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
-     Argument type is "ItemsView[Unknown, Unknown]*" (reportUnknownArgumentType)
-     Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...]* | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+     Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:604:9 - error: Argument type is partially unknown
-     Argument corresponds to parameter "schema" in function "table"
-     Argument type is "dict[str, str | Array[Unknown]]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:606:33 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:606:33 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:606:33 - error: Argument type is unknown
-     Argument corresponds to parameter "repeated_struct_col" in function "__init__"
+     Argument corresponds to parameter "repeated_struct_col" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Array[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:607:17 - error: Argument missing for parameter "fields" (reportCallIssue)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:607:17 - error: Argument type is unknown
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:609:43 - error: Argument missing for parameter "value_type" (reportCallIssue)
+     Argument corresponds to parameter "args" in function "__call__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:609:43 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_compiler.py:609:43 - error: Argument type is unknown
-     Argument corresponds to parameter "nested_struct_col" in function "__init__"
+     Argument corresponds to parameter "nested_struct_col" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Array[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/test_datatypes.py:55:13 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/udf/test_usage.py:60:10 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/tests/unit/udf/test_usage.py:62:10 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:50:23 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:50:23 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:50:23 - error: Argument type is unknown
-     Argument corresponds to parameter "multi_dim" in function "__init__"
+     Argument corresponds to parameter "multi_dim" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Array[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:50:68 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:150:13 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:152:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:158:13 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:159:17 - error: Argument missing for parameter "value_type" (reportCallIssue)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:159:17 - error: Argument type is unknown
+     Argument corresponds to parameter "args" in function "__call__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:161:21 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:163:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:169:13 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:170:17 - error: Argument missing for parameter "value_type" (reportCallIssue)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:170:17 - error: Argument type is unknown
+     Argument corresponds to parameter "args" in function "__call__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:171:21 - error: Argument missing for parameter "value_type" (reportCallIssue)
+   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:171:21 - error: Argument type is unknown
+     Argument corresponds to parameter "args" in function "__call__" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:173:25 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:175:21 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:177:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:189:13 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:194:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:205:13 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:210:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:221:13 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:226:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:237:13 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:240:23 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:240:23 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:240:23 - error: Argument type is unknown
-     Argument corresponds to parameter "b" in function "__init__"
+     Argument corresponds to parameter "b" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Array[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:240:70 - error: Parameter "nullable" is already assigned (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/clickhouse/tests/test_datatypes.py:242:17 - error: Parameter "nullable" is already assigned (reportCallIssue)
-     Type of "expected" is "Int64 | Boolean | Binary | Date | Float64 | Decimal | Int32 | Interval | Float32 | Int16 | Time | Timestamp | Int8 | UInt64 | UInt32 | UInt16 | UInt8 | ModuleType | String | Array[Unknown] | Map[Unknown, Unknown] | Struct" (reportUnknownVariableType)
+     Type of "expected" is "Int64 | Boolean | Binary | Date | Float64 | Decimal | Int32 | Interval | Float32 | Int16 | Time | Timestamp | Int8 | UInt64 | UInt32 | UInt16 | UInt8 | ModuleType | String | Array[Unknown] | Map[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/duckdb/tests/test_datatypes.py:43:17 - error: Argument missing for parameter "fields" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/duckdb/tests/test_datatypes.py:47:27 - error: Argument missing for parameter "value_type" (reportCallIssue)
-   /tmp/mypy_primer/projects/ibis/ibis/backends/duckdb/tests/test_datatypes.py:47:27 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/ibis/ibis/backends/duckdb/tests/test_datatypes.py:47:27 - error: Argument type is unknown

... (truncated 603 lines) ...

sympy (https://github.com/sympy/sympy)
-       "MatrixExpr*" is not assignable to "PermutationMatrix"
-       "StrPrinter*" is not assignable to "NumExprPrinter"
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:22 - error: Invalid conditional operand of type "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
-     Method __bool__ for type "StrictGreaterThan" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:39 - error: Invalid conditional operand of type "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Method __bool__ for type "LessThan" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
- 597275 errors, 0 warnings, 0 notes
+ 597273 errors, 0 warnings, 0 notes

bokeh (https://github.com/bokeh/bokeh)
+   /tmp/mypy_primer/projects/bokeh/src/bokeh/core/property/bases.py:191:20 - error: Type "object | T@Property" is not assignable to return type "T@Property"
+     Type "object | T@Property" is not assignable to type "T@Property" (reportReturnType)
-     Argument type is "dict_keys[Unknown, Unknown]*" (reportUnknownArgumentType)
+     Argument type is "dict_keys[Unknown, Unknown]" (reportUnknownArgumentType)
-     Argument type is "dict_keys[Unknown, Unknown]*" (reportUnknownArgumentType)
+     Argument type is "dict_keys[Unknown, Unknown]" (reportUnknownArgumentType)
- 30086 errors, 0 warnings, 0 notes
+ 30087 errors, 0 warnings, 0 notes

pylint (https://github.com/pycqa/pylint)
+   /tmp/mypy_primer/projects/pylint/pylint/checkers/refactoring/refactoring_checker.py:203:5 - error: Type of "module_scope" is partially unknown
+     Type of "module_scope" is "dict[str, Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pylint/pylint/checkers/refactoring/refactoring_checker.py:204:5 - error: Type of "class_scope" is partially unknown
+     Type of "class_scope" is "dict[str, Unknown]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/pylint/pylint/checkers/refactoring/refactoring_checker.py:205:5 - error: Type of "function_scope" is partially unknown
+     Type of "function_scope" is "dict[str, Unknown]" (reportUnknownVariableType)
- 14956 errors, 0 warnings, 0 notes
+ 14959 errors, 0 warnings, 0 notes

mkdocs (https://github.com/mkdocs/mkdocs)
-     Type of "_schema" is "Sequence[Tuple[str, BaseConfigOption[Unknown]]]*" (reportUnknownMemberType)
+     Type of "_schema" is "Sequence[Tuple[str, BaseConfigOption[Unknown]]]" (reportUnknownMemberType)
-     Type of "_schema" is "Sequence[Tuple[str, BaseConfigOption[Unknown]]]*" (reportUnknownMemberType)
+     Type of "_schema" is "Sequence[Tuple[str, BaseConfigOption[Unknown]]]" (reportUnknownMemberType)

kopf (https://github.com/nolar/kopf)
-     Argument type is "AsyncGenerator[WebhookClientConfig, Unknown]*" (reportUnknownArgumentType)
+     Argument type is "AsyncGenerator[WebhookClientConfig, Unknown]" (reportUnknownArgumentType)
-     Argument type is "AsyncGenerator[WebhookClientConfig, Unknown]*" (reportUnknownArgumentType)
+     Argument type is "AsyncGenerator[WebhookClientConfig, Unknown]" (reportUnknownArgumentType)

prefect (https://github.com/PrefectHQ/prefect)
-   /tmp/mypy_primer/projects/prefect/src/prefect/input/run_input.py:600:16 - error: Return type, "GetInputHandler[RunInput*]* | GetAutomaticInputHandler[Unknown]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/prefect/src/prefect/input/run_input.py:600:16 - error: Return type, "GetInputHandler[RunInput*] | GetAutomaticInputHandler[Unknown]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/prefect/src/prefect/server/utilities/messaging/memory.py:129:16 - error: Condition will always evaluate to False since the types "Dict[str, Any]*" and "None" have no overlap (reportUnnecessaryComparison)
+   /tmp/mypy_primer/projects/prefect/src/prefect/server/utilities/messaging/memory.py:129:16 - error: Condition will always evaluate to False since the types "Dict[str, Any]" and "None" have no overlap (reportUnnecessaryComparison)
-   /tmp/mypy_primer/projects/prefect/src/prefect/server/utilities/messaging/memory.py:148:16 - error: Condition will always evaluate to False since the types "Dict[str, Any]*" and "None" have no overlap (reportUnnecessaryComparison)
+   /tmp/mypy_primer/projects/prefect/src/prefect/server/utilities/messaging/memory.py:148:16 - error: Condition will always evaluate to False since the types "Dict[str, Any]" and "None" have no overlap (reportUnnecessaryComparison)

core (https://github.com/home-assistant/core)
-   /tmp/mypy_primer/projects/core/homeassistant/data_entry_flow.py:367:22 - error: Type "_FlowResultT@FlowManager" is not assignable to declared type "_FlowResultT@FlowManager | None"
-     Type "_FlowResultT@FlowManager" is not assignable to type "_FlowResultT@FlowManager | None"
-       Type "_FlowResultT@FlowManager" is not assignable to type "_FlowResultT@FlowManager"
-       "FlowResult[Any, Any]*" is not assignable to "None" (reportAssignmentType)
-   /tmp/mypy_primer/projects/core/homeassistant/data_entry_flow.py:371:16 - error: Type "_FlowResultT@FlowManager | None" is not assignable to return type "_FlowResultT@FlowManager"
+   /tmp/mypy_primer/projects/core/homeassistant/data_entry_flow.py:371:16 - error: Type "_FlowResultT@FlowManager" is not assignable to return type "_FlowResultT@FlowManager"
-     Type "_FlowResultT@FlowManager | None" is not assignable to type "_FlowResultT@FlowManager" (reportReturnType)
+     Type "_FlowResultT@FlowManager" is not assignable to type "_FlowResultT@FlowManager" (reportReturnType)
-     Type of "exceptions" is "tuple[Unknown, ...]*" (reportUnknownMemberType)
+     Type of "exceptions" is "tuple[Unknown, ...]" (reportUnknownMemberType)
-     Type of "name_fn" is "(hub: Unknown, event: Unknown) -> Literal['']" (reportUnknownVariableType)
+     Type of "name_fn" is "(hub: AxisHub, event: Unknown) -> Literal['']" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/axis/entity.py:48:55 - error: Type of parameter "hub" is unknown (reportUnknownLambdaType)
-     Type of "supported_fn" is "(hub: Unknown, event: Unknown) -> Literal[True]" (reportUnknownVariableType)
+     Type of "supported_fn" is "(hub: AxisHub, event: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/axis/entity.py:50:61 - error: Type of parameter "hub" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/lamarzocco/entity.py:22:5 - error: Type of "supported_fn" is partially unknown
-     Type of "supported_fn" is "(_: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/lamarzocco/entity.py:22:74 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/lidarr/sensor.py:65:5 - error: Type of "attributes_fn" is partially unknown
-     Type of "attributes_fn" is "(_: Unknown) -> None" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/lidarr/sensor.py:65:66 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/lidarr/sensor.py:76:19 - error: Argument type is partially unknown
-     Argument corresponds to parameter "attributes_fn" in function "__init__"
-     Argument type is "(_: Unknown) -> None" (reportUnknownArgumentType)
-     Type of "supported" is "(api: Unknown, ch: Unknown) -> Literal[True]" (reportUnknownVariableType)
+     Type of "supported" is "(api: Unknown, ch: int) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/reolink/entity.py:32:58 - error: Type of parameter "ch" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/sensor.py:141:5 - error: Type of "value_fn" is partially unknown
-     Type of "value_fn" is "(_: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/sensor.py:141:59 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/sensor.py:143:5 - error: Type of "extra_state_attributes_fn" is partially unknown
-     Type of "extra_state_attributes_fn" is "(_: Unknown) -> None" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/sensor.py:144:16 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/switch.py:41:16 - error: Type of parameter "self" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/ring/switch.py:41:22 - error: Type of parameter "device" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/button.py:42:5 - error: Argument of type "(_: _ShellyCoordinatorT@ShellyButtonDescription) -> Literal[True]" cannot be assigned to parameter "supported" of type "(ShellyBlockCoordinator | ShellyRpcCoordinator) -> bool" in function "__init__"
-     Type "(_: _ShellyCoordinatorT@ShellyButtonDescription) -> Literal[True]" is not assignable to type "(ShellyBlockCoordinator | ShellyRpcCoordinator) -> bool"
-       Parameter 1: type "ShellyBlockCoordinator | ShellyRpcCoordinator" is incompatible with type "_ShellyCoordinatorT@ShellyButtonDescription"
-         Type "ShellyBlockCoordinator | ShellyRpcCoordinator" is not assignable to type "_ShellyCoordinatorT@ShellyButtonDescription" (reportArgumentType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/entity.py:271:5 - error: Type of "value" is partially unknown
-     Type of "value" is "(val: Unknown) -> Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/entity.py:271:42 - error: Type of parameter "val" is unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/entity.py:271:42 - error: Type of parameter "val" is Any (reportAny)
-   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/entity.py:271:47 - error: Return type of lambda is unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/shelly/entity.py:271:47 - error: Return type of lambda is Any (reportAny)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tesla_fleet/select.py:33:5 - error: Type of "available_fn" is partially unknown
-     Type of "available_fn" is "(_: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tesla_fleet/select.py:33:79 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/teslemetry/select.py:33:5 - error: Type of "available_fn" is partially unknown
-     Type of "available_fn" is "(_: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/teslemetry/select.py:33:79 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:109:5 - error: Type of "exists_func" is partially unknown
-     Type of "exists_func" is "(_: Unknown, p: Unknown) -> Literal[True]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:109:60 - error: Type of parameter "_" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:109:63 - error: Type of parameter "p" is unknown (reportUnknownLambdaType)
-     Type of "coordinator_update_func" is "(coord: Unknown, _: Unknown, port: Unknown) -> Unknown" (reportUnknownVariableType)
+     Type of "coordinator_update_func" is "(coord: OmadaSwitchPortCoordinator, _: Unknown, port: Unknown) -> (Unknown | None)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:16 - error: Type of parameter "coord" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Type of "data" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Type of "data" is partially unknown
+     Type of "data" is "dict[str, Unknown]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Type of "get" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Type of "get" is partially unknown
+     Type of "get" is "Overload[(key: str, /) -> (Unknown | None), (key: str, default: Unknown, /) -> Unknown, (key: str, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Return type of lambda is unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:32 - error: Return type of lambda, "Unknown | None", is partially unknown (reportUnknownLambdaType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:126:47 - error: Argument type is unknown
+     Argument corresponds to parameter "key" in function "get" (reportUnknownArgumentType)
-     Type of "coordinator_update_func" is "(coord: Unknown, device: Unknown, port: Unknown) -> Unknown" (reportUnknownVariableType)
+     Type of "coordinator_update_func" is "(coord: OmadaGatewayCoordinator, device: Unknown, port: Unknown) -> Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:140:16 - error: Type of parameter "coord" is unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:142:18 - error: Type of "data" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/core/homeassistant/components/tplink_omada/switch.py:142:18 - error: Type of "data" is partially unknown
+     Type of "data" is "dict[str, Unknown]" (reportUnknownMemberType)

... (truncated 35 lines) ...

mitmproxy (https://github.com/mitmproxy/mitmproxy)
-     Type of "__fields" is "_lru_cache_wrapper[tuple[Field[Unknown], ...]]*" (reportUnknownMemberType)
+     Type of "__fields" is "_lru_cache_wrapper[tuple[Field[Unknown], ...]]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/mitmproxy/mitmproxy/tools/main.py:117:13 - error: Result of call expression is of type "Handle*" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/mitmproxy/mitmproxy/tools/main.py:117:13 - error: Result of call expression is of type "Handle" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

pip (https://github.com/pypa/pip)
-   /tmp/mypy_primer/projects/pip/src/pip/_vendor/typing_extensions.py:2809:21 - error: Return type, "type* | Unknown", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/pip/src/pip/_vendor/typing_extensions.py:2809:21 - error: Return type, "type | Unknown", is partially unknown (reportUnknownParameterType)

... (truncated 361 lines) ...```

@DetachHead DetachHead merged commit a34288d into main Oct 16, 2024
20 checks passed
@DetachHead DetachHead deleted the merge-1.1.385 branch October 16, 2024 08:07
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.

3 participants