Skip to content

Typing

Various type aliases.

OptionCallable = Callable[P, Option[T]] module-attribute

Represents option callables (**P) -> Option[T].

OptionAsyncCallable = AsyncCallable[P, Option[T]] module-attribute

Represents option async callables async (**P) -> Option[T].

ResultCallable = Callable[P, Result[T, E]] module-attribute

Represents result callables (**P) -> Result[T, E].

ResultAsyncCallable = AsyncCallable[P, Result[T, E]] module-attribute

Represents result async callables async (**P) -> Result[T, E].

EitherCallable = Callable[P, Either[L, R]] module-attribute

Represents either callables (**P) -> Either[L, R].

EitherAsyncCallable = AsyncCallable[P, Either[L, R]] module-attribute

Represents either async callables async (**P) -> Either[L, R].