mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
2
stubs/pyre-extensions/METADATA.toml
Normal file
2
stubs/pyre-extensions/METADATA.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
version = "0.1"
|
||||
python2 = true
|
||||
7
stubs/pyre-extensions/pyre_extensions.pyi
Normal file
7
stubs/pyre-extensions/pyre_extensions.pyi
Normal file
@@ -0,0 +1,7 @@
|
||||
from typing import Any, List, Optional, Type, TypeVar
|
||||
|
||||
_T = TypeVar("_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[Any]]: ...
|
||||
Reference in New Issue
Block a user