[ty] Add --add-ignore CLI option by MichaReiser · Pull Request #21696 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
tornado (https://github.com/tornadoweb/tornado)
- tornado/gen.py:255:62: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedNone | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown], found_T@next | _T@next | _VT@next
- tornado/gen.py:255:62: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedNone | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown], found_T@next | _VT@next | _T@next
pydantic (https://github.com/pydantic/pydantic)
- pydantic/fields.py:943:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:943:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:983:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:983:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1026:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1026:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1066:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1066:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1109:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1109:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1148:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1148:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1188:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1188:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1567:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None, foundTop[dict[Unknown, Unknown]] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
- pydantic/fields.py:1567:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None, foundTop[dict[Unknown, Unknown]] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/data.py:347:12: error[invalid-return-type] Return type does not match returned value: expected
_T@cached_inject, found_T@cached_inject | Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]]
- tanjun/dependencies/data.py:347:12: error[invalid-return-type] Return type does not match returned value: expected
_T@cached_inject, foundCoroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]] | _T@cached_inject
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:461:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:461:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:535:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:535:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:610:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:610:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:685:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:685:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:760:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:760:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:835:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, None | Unknown]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:835:21: error[invalid-await]
Unknown | None | Coroutine[Any, Any, Unknown | None]is not awaitable
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any]is not assignable todict[str, Any]
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any] | str | ... 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
T@resolve_variables | dict[str, Any]is not assignable todict[str, Any]
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:99:28: error[invalid-assignment] Object of type
T@resolve_variables | str | int | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any]is not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
T@resolve_variablesis not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
T@resolve_variables | str | int | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/prefect/deployments/runner.py:795:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | ((...) -> Any)
- src/prefect/deployments/runner.py:795:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))
- src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any]
- src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements
- src/prefect/flow_engine.py:812:32: error[invalid-await]
Unknown | R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1401:24: error[invalid-await]
Unknown | R@AsyncFlowRunEngine | Coroutine[Any, Any, R@AsyncFlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1482:43: error[invalid-argument-type] Argument to function
nextis incorrect: ExpectedSupportsNext[Unknown], foundUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1490:21: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1524:44: warning[possibly-missing-attribute] Attribute
__anext__may be missing on object of typeUnknown | R@run_generator_flow_async - src/prefect/flow_engine.py:1531:25: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_async - src/prefect/flows.py:286:34: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:286:34: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__
- src/prefect/flows.py:404:68: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:404:68: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__ - src/prefect/flows.py:1750:53: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typeT@resolve_block_document_references | 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 typeT@resolve_block_document_references | dict[str, Any] | str | ... 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[T@resolve_block_document_references | dict[str, Any] | Unknown]
- 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[T@resolve_block_document_references | dict[str, Any] | str | ... omitted 5 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, T@resolve_variables | 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, T@resolve_variables | str | int | ... omitted 5 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[T@resolve_variables | Unknown]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[T@resolve_variables | str | int | ... omitted 5 union elements]
- src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any]
- src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements
- src/prefect/workers/base.py:234:20: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
T@resolve_variables
- src/prefect/workers/base.py:234:20: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
T@resolve_variables | str | int | ... omitted 4 union elements
- Found 5363 diagnostics
- Found 5358 diagnostics
static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/node_selector.py:526:16: error[invalid-return-type] Return type does not match returned value: expected
InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any], foundInterGetItemLocReduces[Bottom[Series[Any, Any]] | Unknown, Any]
- static_frame/core/node_selector.py:526:16: error[invalid-return-type] Return type does not match returned value: expected
InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any], foundInterGetItemLocReduces[Unknown | Bottom[Series[Any, Any]], Any]
- static_frame/core/series.py:772:16: error[invalid-return-type] Return type does not match returned value: expected
InterGetItemILocReduces[Series[Any, Any], TVDtype@Series], foundInterGetItemILocReduces[Series[Any, Any] | TypeBlocks | Batch | ... omitted 6 union elements, TVDtype@Series]
- static_frame/core/series.py:772:16: error[invalid-return-type] Return type does not match returned value: expected
InterGetItemILocReduces[Series[Any, Any], TVDtype@Series], foundInterGetItemILocReduces[Series[Any, Any] | Bottom[Index[Any]] | TypeBlocks | ... omitted 6 union elements, TVDtype@Series]
- static_frame/core/series.py:4072:16: error[invalid-return-type] Return type does not match returned value: expected
InterGetItemILocReduces[SeriesHE[Any, Any], TVDtype@SeriesHE], foundInterGetItemILocReduces[Bottom[Series[Any, Any]] | TypeBlocks | Batch | ... omitted 7 union elements, TVDtype@SeriesHE] - Found 1838 diagnostics
- Found 1837 diagnostics
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/_typing.pyi:1232:16: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 5134 diagnostics
- Found 5133 diagnostics
core (https://github.com/home-assistant/core)
- homeassistant/util/variance.py:47:12: error[invalid-return-type] Return type does not match returned value: expected
(**_P@ignore_variance) -> _R@ignore_variance, found_Wrapped[_P@ignore_variance, _R@ignore_variance | int | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]
- Found 14473 diagnostics
- Found 14474 diagnostics
No memory usage changes detected ✅