[ty] Fix panic when overriding final method using an assignment by MichaReiser · Pull Request #22831 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
prefect (https://github.com/PrefectHQ/prefect)
- 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/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
- Found 5340 diagnostics
- Found 5346 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 14466 diagnostics
- Found 14467 diagnostics
No memory usage changes detected ✅