mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add _py_abc stubs (#4129)
This commit is contained in:
11
stdlib/3.7/_py_abc.pyi
Normal file
11
stdlib/3.7/_py_abc.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
from typing import Type, TypeVar, Tuple, Any, Dict, NewType
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
# TODO: Change the return into a NewType bound to int after pytype/#597
|
||||
def get_cache_token() -> object: ...
|
||||
|
||||
class ABCMeta(type):
|
||||
def __new__(mcls, __name: str, __bases: Tuple[Type[Any], ...], __namespace: Dict[str, Any]) -> ABCMeta: ...
|
||||
def register(cls, subclass: Type[_T]) -> Type[_T]: ...
|
||||
Reference in New Issue
Block a user