Create async version of EnsembleEvaluator #22931
Annotations
10 errors
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L51
Cannot assign to a method
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L51
Incompatible types in assignment (expression has type overloaded function, variable has type "Callable[[object, VarArg(object), DefaultNamedArg(bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException | None, 'exc_info'), DefaultNamedArg(bool, 'stack_info'), DefaultNamedArg(int, 'stacklevel'), DefaultNamedArg(Mapping[str, object] | None, 'extra')], None]")
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L78
Missing type parameters for generic type "Task"
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L79
Missing type parameters for generic type "Task"
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L80
Missing type parameters for generic type "Task"
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L82
Function is missing a return type annotation
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L88
Function is missing a type annotation
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L99
Call to untyped function "set_handler" in typed context
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L360
Item "None" of "Task[Any] | None" has no attribute "cancel"
|
type-checking (3.11):
src/ert/ensemble_evaluator/evaluator_async.py#L361
Incompatible types in "await" (actual type "Task[Any] | None", expected type "Awaitable[Any]")
|