tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

converters.pyi (406B)


      1 from typing import Callable, TypeVar, overload
      2 
      3 from . import _ConverterType
      4 
      5 _T = TypeVar("_T")
      6 
      7 def pipe(*validators: _ConverterType) -> _ConverterType: ...
      8 def optional(converter: _ConverterType) -> _ConverterType: ...
      9 @overload
     10 def default_if_none(default: _T) -> _ConverterType: ...
     11 @overload
     12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType: ...
     13 def to_bool(val: str) -> bool: ...