Update pyre_extensions stub (#3214)

This commit is contained in:
Shannon Zhu
2019-08-30 16:15:24 -07:00
committed by Jelle Zijlstra
parent 99e8ed42a4
commit f9300ed1ed

View File

@@ -1,6 +1,7 @@
from typing import List, Optional, Type, TypeVar
from typing import Any, List, Optional, Type, TypeVar
_T = TypeVar("_T")
def none_throws(optional: Optional[_T]) -> _T: ...
def none_throws(optional: Optional[_T], message: str = ...) -> _T: ...
def safe_cast(new_type: Type[_T], value: Any) -> _T: ...
def ParameterSpecification(__name: str) -> List[Type]: ...