We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
from typing import Iterable, TypeVar, Callable, Iterator, Generic T = TypeVar("T") def gen(f: Callable, *args) -> Callable[[], Iterator[T]]: return lambda: f(*args)
Related question: is it currently possible to type argument f: Callable[..., Iterator[T]]?
f: Callable[..., Iterator[T]]