Use "..." for attribute values, instead of None, [], {}

This commit is contained in:
Alvaro Caceres
2016-06-15 14:10:04 -05:00
parent f45c00f129
commit d0ac66f5f8
17 changed files with 49 additions and 49 deletions

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -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