[ty] look up attributes on metaclasses for goto-definition by felixscherz · Pull Request #22758 · 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[Any, Any] | int | dict[str, 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 4 union elementsis not assignable todict[str, Any] - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
str, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
str | list[str] | None, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
bool | None, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
str | list[str] | None, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, str] | list[str] | None, foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:27:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr | bool | dict[Unknown | str, Unknown | int] | None - src/integrations/prefect-docker/tests/test_containers.py:42:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_containers.py:55:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_containers.py:68:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_containers.py:81:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
str, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
bool, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
DockerHost | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
DockerRegistryCredentials | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:16:44: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:21:16: warning[possibly-missing-attribute] Attribute
idmay be missing on object of typeUnknown | list[Unknown] - src/integrations/prefect-docker/tests/test_images.py:29:47: error[invalid-argument-type] Argument is incorrect: Expected
bool, foundstr - src/integrations/prefect-docker/tests/test_images.py:29:47: error[invalid-argument-type] Argument is incorrect: Expected
DockerRegistryCredentials | None, foundstr - src/integrations/prefect-docker/tests/test_images.py:29:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_images.py:31:16: warning[possibly-missing-attribute] Attribute
idmay be missing on object of typeUnknown | list[Unknown] - src/integrations/prefect-docker/tests/test_images.py:51:17: error[invalid-argument-type] Argument is incorrect: Expected
bool, foundstr - src/integrations/prefect-docker/tests/test_images.py:51:17: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-docker/tests/test_images.py:53:16: warning[possibly-missing-attribute] Attribute
idmay be missing on object of typeUnknown | list[Unknown] - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
str, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
bool, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
DockerRegistryCredentials | None, foundstr | bool - src/integrations/prefect-docker/tests/test_images.py:64:47: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr | bool - src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:429:17: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundstr - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:20:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundNone - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:29:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundNone - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:38:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundNone - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:57:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:103:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:149:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:195:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:240:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:286:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_custom_objects.py:344:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py🔞9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py:38:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py:70:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py:92:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py:113:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_deployments.py:141:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:36:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:52:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:68:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:87:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:107:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:131:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_jobs.py:159:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:29:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:46:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:78:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:96:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:115:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:137:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"] - src/integrations/prefect-kubernetes/tests/test_pods.py:167:9: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], foundLiteral["test"]
- src/prefect/cache_policies.py:311:25: warning[possibly-missing-attribute] Attribute
__code__may be missing on object of typeUnknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))
- src/prefect/cache_policies.py:311:25: warning[possibly-missing-attribute] Attribute
__code__may be missing on object of typeUnknown | ((...) -> Any) - src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
dict[Any, Any] | int | dict[str, 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/runner.py:997:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))
- src/prefect/deployments/runner.py:997:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | ((...) -> Any) - src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Argument type
dict[Any, Any] | int | dict[str, Any] | ... omitted 4 union elementsdoes not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT - src/prefect/flow_engine.py:989:32: error[invalid-await]
Unknown | R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1580:24: error[invalid-await]
Unknown | R@AsyncFlowRunEngine | Coroutine[Any, Any, R@AsyncFlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1661:43: error[invalid-argument-type] Argument to function
nextis incorrect: ExpectedSupportsNext[Unknown], foundUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1669:21: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1703:44: warning[possibly-missing-attribute] Attribute
__anext__may be missing on object of typeUnknown | R@run_generator_flow_async - src/prefect/flow_engine.py:1710:25: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_async
- src/prefect/flows.py:285:34: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__
- src/prefect/flows.py:285:34: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:403:68: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__
- src/prefect/flows.py:403:68: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:1877:53: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- src/prefect/flows.py:1937:21: error[no-matching-overload] No overload of function
run_coro_as_syncmatches arguments - src/prefect/task_engine.py:1627:28: error[invalid-await]
Unknown | R@AsyncTaskRunEngine | Coroutine[Any, Any, R@AsyncTaskRunEngine]is not awaitable - src/prefect/task_engine.py:1735:47: error[invalid-argument-type] Argument to function
nextis incorrect: ExpectedSupportsNext[Unknown], foundUnknown | R@run_generator_task_sync - src/prefect/task_engine.py:1748:25: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_task_sync - src/prefect/task_engine.py:1794:48: warning[possibly-missing-attribute] Attribute
__anext__may be missing on object of typeUnknown | R@run_generator_task_async - src/prefect/task_engine.py:1806:29: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_task_async
- src/prefect/tasks.py:185:9: warning[possibly-missing-attribute] Attribute
__code__may be missing on object of typeUnknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))
- src/prefect/tasks.py:185:9: warning[possibly-missing-attribute] Attribute
__code__may be missing on object of typeUnknown | ((...) -> Any)
- 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 typeUnknown | int | dict[str, Any] | ... 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 | int | dict[str, Any] | ... 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
str | int | dict[str, Any] | ... 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 5285 diagnostics
- Found 5365 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, int | _R@ignore_variance | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]
- Found 14485 diagnostics
- Found 14486 diagnostics
No memory usage changes detected ✅