You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

converters.pyi 351B

5 years ago
123456789101112
  1. from typing import TypeVar, Optional, Callable, overload
  2. from . import _ConverterType
  3. _T = TypeVar("_T")
  4. def optional(
  5. converter: _ConverterType[_T]
  6. ) -> _ConverterType[Optional[_T]]: ...
  7. @overload
  8. def default_if_none(default: _T) -> _ConverterType[_T]: ...
  9. @overload
  10. def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...