src/prefect/flow_engine.py
[error] invalid-return-type -
:357:20 -
Return type does not match returned value: expected `R@FlowRunEngine | State[Any] | None`, found `(R@FlowRunEngine & ~<class 'NotSet'> & ~Top[State[Any]] & ~Coroutine[object, Never, object]) | (type[NotSet] & ~<class 'NotSet'> & ~Coroutine[object, Never, object]) | Unknown | (PrefectFuture[Unknown] & ~Top[State[Any]] & ~Coroutine[object, Never, object])`
[error] invalid-raise -
:361:23 -
Cannot raise object of type `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)` (must be a `BaseException` subclass or instance)
[error] invalid-return-type -
:362:20 -
Return type does not match returned value: expected `R@FlowRunEngine | State[Any] | None`, found `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)`
[error] invalid-return-type -
:370:16 -
Return type does not match returned value: expected `R@FlowRunEngine | State[Any] | None`, found `Unknown | Coroutine[Any, Any, Unknown]`
[error] invalid-assignment -
:385:9 -
Object of type `PrefectFuture[Unknown] | Any` is not assignable to attribute `_return_value` of type `R@FlowRunEngine | type[NotSet]`
[error] invalid-assignment -
:448:9 -
Object of type `BaseException` is not assignable to attribute `_raised` of type `Exception | type[NotSet]`
[error] invalid-argument-type -
:581:31 -
Argument to bound method `__call__` is incorrect: Expected `Flow[P@FlowRunEngine, Coroutine[Any, Any, R@FlowRunEngine]]`, found `Flow[P@FlowRunEngine, R@FlowRunEngine] | Flow[P@FlowRunEngine, Coroutine[Any, Any, R@FlowRunEngine]]`
[error] invalid-argument-type -
:581:31 -
Argument to bound method `__call__` is incorrect: Expected `Flow[P@FlowRunEngine, R@FlowRunEngine]`, found `Flow[P@FlowRunEngine, R@FlowRunEngine] | Flow[P@FlowRunEngine, Coroutine[Any, Any, R@FlowRunEngine]]`
[error] invalid-assignment -
:695:25 -
Object of type `int | float` is not assignable to attribute `retry_delay` of type `int | None`
[error] invalid-return-type -
:937:20 -
Return type does not match returned value: expected `R@AsyncFlowRunEngine | State[Any] | None`, found `object`
[error] invalid-raise -
:941:23 -
Cannot raise object of type `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)` (must be a `BaseException` subclass or instance)
[error] invalid-return-type -
:942:20 -
Return type does not match returned value: expected `R@AsyncFlowRunEngine | State[Any] | None`, found `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)`
[error] invalid-assignment -
:962:9 -
Object of type `PrefectFuture[Unknown] | Any` is not assignable to attribute `_return_value` of type `R@AsyncFlowRunEngine | type[NotSet]`
[error] invalid-assignment -
:1026:13 -
Object of type `BaseException` is not assignable to attribute `_raised` of type `Exception | type[NotSet]`
[error] invalid-argument-type -
:1158:31 -
Argument to bound method `__call__` is incorrect: Expected `Flow[P@AsyncFlowRunEngine, Coroutine[Any, Any, R@AsyncFlowRunEngine]]`, found `Flow[P@AsyncFlowRunEngine, R@AsyncFlowRunEngine] | Flow[P@AsyncFlowRunEngine, Coroutine[Any, Any, R@AsyncFlowRunEngine]]`
[error] invalid-argument-type -
:1158:31 -
Argument to bound method `__call__` is incorrect: Expected `Flow[P@AsyncFlowRunEngine, R@AsyncFlowRunEngine]`, found `Flow[P@AsyncFlowRunEngine, R@AsyncFlowRunEngine] | Flow[P@AsyncFlowRunEngine, Coroutine[Any, Any, R@AsyncFlowRunEngine]]`
[error] invalid-assignment -
:1276:25 -
Object of type `int | float` is not assignable to attribute `retry_delay` of type `int | None`
[error] invalid-argument-type -
:1473:43 -
Argument to bound method `handle_success` is incorrect: Expected `R@run_generator_flow_sync`, found `None`
[error] invalid-argument-type -
:1513:49 -
Argument to bound method `handle_success` is incorrect: Expected `R@run_generator_flow_async`, found `None`
[warning] unused-ignore-comment -
:203:49 -
Unused blanket `type: ignore` directive
[warning] unused-ignore-comment -
:949:77 -
Unused blanket `type: ignore` directive
[error] invalid-return-type -
:795:31 -
Old: Function can implicitly return `None`, which is not assignable to return type `R@call_flow_fn | Coroutine[Any, Any, R@call_flow_fn]`
New: Function can implicitly return `None`, which is not assignable to return type `R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]`
[error] invalid-argument-type -
:1560:48 -
Old: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Old: Argument to function `run_generator_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Unknown]] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Old: Argument to function `run_generator_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Old: Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Old: Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Argument to function `run_generator_flow_async` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Argument to function `run_generator_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Unknown]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Argument to function `run_generator_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1560:48 -
Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Old: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Old: Argument to function `run_generator_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Old: Argument to function `run_generator_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Old: Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Old: Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Argument to function `run_generator_flow_sync` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Argument to function `run_generator_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Argument to function `run_generator_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1562:47 -
Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Old: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Old: Argument to function `run_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Old: Argument to function `run_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Old: Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Old: Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Argument to function `run_flow_async` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Argument to function `run_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Argument to function `run_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1564:38 -
Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Old: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Old: Argument to function `run_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Old: Argument to function `run_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Old: Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Old: Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | FlowRun | None | ... omitted 3 union elements`
New: Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Argument to function `run_flow_sync` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Argument to function `run_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Argument to function `run_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
[error] invalid-argument-type -
:1566:37 -
Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
src/prefect/task_engine.py
[error] call-non-callable -
:344:21 -
Object of type `None` is not callable
[error] invalid-return-type -
:492:24 -
Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `object`
[error] invalid-return-type -
:494:20 -
Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `(R@SyncTaskRunEngine & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]]) | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]])`
[error] invalid-raise -
:499:23 -
Cannot raise object of type `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)` (must be a `BaseException` subclass or instance)
[error] invalid-return-type -
:502:20 -
Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)`
[error] invalid-argument-type -
:668:21 -
Argument is incorrect: Expected `dict[str, Any]`, found `dict[str, Any] | None`
[error] invalid-argument-type -
:735:29 -
Argument to function `emit_task_run_state_change_event` is incorrect: Expected `State[Any]`, found `State[Any] | None`
[warning] possibly-missing-attribute -
:852:28 -
Attribute `isolation_level` may be missing on object of type `(CachePolicy & ~AlwaysFalsy) | (type[NotSet] & ~AlwaysFalsy & ~<class 'NotSet'>)`
[warning] possibly-missing-attribute -
:855:17 -
Attribute `isolation_level` may be missing on object of type `(CachePolicy & ~AlwaysFalsy) | (type[NotSet] & ~AlwaysFalsy & ~<class 'NotSet'>)`
[error] call-non-callable -
:936:38 -
Object of type `None` is not callable
[error] invalid-return-type -
:1100:24 -
Return type does not match returned value: expected `R@AsyncTaskRunEngine | State[Any] | None`, found `object`
[error] invalid-return-type -
:1102:20 -
Return type does not match returned value: expected `R@AsyncTaskRunEngine | State[Any] | None`, found `(R@AsyncTaskRunEngine & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]]) | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]])`
[error] invalid-raise -
:1107:23 -
Cannot raise object of type `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)` (must be a `BaseException` subclass or instance)
[error] invalid-return-type -
:1110:20 -
Return type does not match returned value: expected `R@AsyncTaskRunEngine | State[Any] | None`, found `BaseException | (type[NotSet] & ~<class 'NotSet'>) | (Unknown & ~<class 'NotSet'>)`
[error] invalid-argument-type -
:1275:21 -
Argument is incorrect: Expected `dict[str, Any]`, found `dict[str, Any] | None`
[error] invalid-argument-type -
:1340:29 -
Argument to function `emit_task_run_state_change_event` is incorrect: Expected `State[Any]`, found `State[Any] | None`
[warning] possibly-missing-attribute -
:1458:28 -
Attribute `isolation_level` may be missing on object of type `(CachePolicy & ~AlwaysFalsy) | (type[NotSet] & ~AlwaysFalsy & ~<class 'NotSet'>)`
[warning] possibly-missing-attribute -
:1461:17 -
Attribute `isolation_level` may be missing on object of type `(CachePolicy & ~AlwaysFalsy) | (type[NotSet] & ~AlwaysFalsy & ~<class 'NotSet'>)`
[error] invalid-argument-type -
:1627:47 -
Argument to bound method `handle_success` is incorrect: Expected `R@run_generator_task_sync`, found `None`
[error] invalid-argument-type -
:1684:53 -
Argument to bound method `handle_success` is incorrect: Expected `R@run_generator_task_async`, found `None`
[warning] possibly-missing-attribute -
:220:13 -
Attribute `extra` may be missing on object of type `Logger | @Todo`
[error] unresolved-attribute -
:220:13 -
Object of type `Logger` has no attribute `extra`
[warning] possibly-missing-attribute -
:222:37 -
Old: Attribute `name` may be missing on object of type `TaskRun | None | @Todo`
New: Attribute `name` may be missing on object of type `TaskRun | None`
[error] invalid-assignment -
:224:13 -
Old: Object of type `str` is not assignable to attribute `name` on type `TaskRun | None | @Todo`
New: Object of type `str` is not assignable to attribute `name` on type `TaskRun | None`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `TaskRun | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `UUID | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Old: Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1759:41 -
Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `TaskRun | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `UUID | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Old: Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1761:40 -
Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1763:31 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `TaskRun | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `UUID | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Old: Argument to function `run_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `@Todo | UUID | None | ... omitted 4 union elements`
New: Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
[error] invalid-argument-type -
:1765:30 -
Argument to function `run_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
src/prefect/task_runners.py
[error] invalid-return-type -
:950:16 -
Return type does not match returned value: expected `PrefectDistributedFuture[R@PrefectTaskRunner]`, found `PrefectDistributedFuture[R@PrefectTaskRunner | CoroutineType[Any, Any, R@PrefectTaskRunner]]`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Old: Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `@Todo | UUID | dict[str, Any] | ... omitted 5 union elements`
New: Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
[error] invalid-argument-type -
:400:32 -
Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`