blob: 7d8f6234d88d90731ad0b25fd66286168b22d98f [file]
from typing import Any, Generic, TypeVar
from collections.abc import Callable
from .shared_types import ExecutorProtocol, TypedExecutorProtocol
A = TypeVar("A")
B = TypeVar("B")
class MapExecutor(TypedExecutorProtocol[A, B]):
def __init__(
self,
delegate: ExecutorProtocol,
fn: Callable[[A], B] = ...,
logger: Any | None = ...,
name: str = ...,
**kwargs
) -> None: ...
def __enter__(self) -> MapExecutor[A, B]: ...