[ty] Ban ... in odd places inside tuple specializations by AlexWaygood · Pull Request #22889 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elementsis not assignable todict[str, Any] - src/integrations/prefect-dbt/prefect_dbt/core/settings.py:99:28: error[invalid-assignment] Object of type
int | dict[Any, Any] | float | ... omitted 3 union elementsis not assignable todict[str, Any] - src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elementsis not assignable todict[str, Any] - src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
int | dict[Any, Any] | float | ... omitted 3 union elementsis not assignable todict[str, Any] - src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Argument type
dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elementsdoes not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT
- src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typeUnknown | dict[str, Any]on object of typedict[str, Any]
- src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typedict[str, Any] | int | Unknown | ... omitted 4 union elementson object of typedict[str, Any]
- src/prefect/utilities/templating.py:323:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_block_document_references | dict[str, Any], foundlist[Unknown | dict[str, Any]]
- src/prefect/utilities/templating.py:323:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_block_document_references | dict[str, Any], foundlist[Unknown | dict[str, Any] | int | ... omitted 4 union elements]
- src/prefect/utilities/templating.py:437:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, founddict[object, Unknown]
- src/prefect/utilities/templating.py:437:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, founddict[object, Unknown | int | float | ... omitted 4 union elements]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[Unknown]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[Unknown | int | float | ... omitted 4 union elements]
- src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Argument type
str | dict[str, Any]does not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT
- src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Argument type
dict[str, Any] | int | str | ... omitted 3 union elementsdoes not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT - src/prefect/workers/base.py:234:20: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
int | Unknown | float | ... omitted 4 union elements
- Found 5362 diagnostics
- Found 5368 diagnostics
static-frame (https://github.com/static-frame/static-frame)
- static_frame/test/unit/test_type_clinic.py:258:37: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization - static_frame/test/unit/test_type_clinic.py:673:32: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization - static_frame/test/unit/test_type_clinic.py:673:32: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization - static_frame/test/unit/test_type_clinic.py:744:55: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization - static_frame/test/unit/test_type_clinic.py:744:55: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization - static_frame/test/unit/test_type_clinic.py:802:77: error[invalid-type-form] Invalid
tuplespecialization:...can only be used as the second element in a two-elementtuplespecialization
- Found 1819 diagnostics
- Found 1825 diagnostics
No memory usage changes detected ✅