mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use "..." for attribute values, instead of None, [], {}
This commit is contained in:
@@ -13,9 +13,9 @@ AF_UNSPEC = 0 # from socket
|
||||
AI_PASSIVE = 0
|
||||
|
||||
class Handle:
|
||||
__slots__ = [] # type: List[str]
|
||||
__slots__ = ... # type: List[str]
|
||||
_cancelled = False
|
||||
_args = [] # type: List[Any]
|
||||
_args = ... # type: List[Any]
|
||||
def __init__(self, callback: Callable[[],Any], args: List[Any],
|
||||
loop: AbstractEventLoop) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
@@ -6,9 +6,9 @@ __all__ = ... # type: str
|
||||
_T = TypeVar('_T')
|
||||
|
||||
class _TracebackLogger:
|
||||
__slots__ = [] # type: List[str]
|
||||
__slots__ = ... # type: List[str]
|
||||
exc = ... # type: BaseException
|
||||
tb = [] # type: List[str]
|
||||
tb = ... # type: List[str]
|
||||
def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ...
|
||||
def activate(self) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
@@ -16,8 +16,8 @@ def wait_for(fut: Union[Future[_T], Generator[Any, None, _T]], timeout: float, *
|
||||
|
||||
|
||||
class Task(Future[_T], Generic[_T]):
|
||||
_all_tasks = None # type: Set[Task]
|
||||
_current_tasks = {} # type: Dict[AbstractEventLoop, Task]
|
||||
_all_tasks = ... # type: Set[Task]
|
||||
_current_tasks = ... # type: Dict[AbstractEventLoop, Task]
|
||||
@classmethod
|
||||
def current_task(cls, loop: AbstractEventLoop = ...) -> Task: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user