Define __slots__ for object as Iterable[str] / Iterable[Union[str, unicode]] (#780)

* Define __slots__ for object as Iterable[str] / Iterable[Union[str, unicode]]
* A string as __slots__ value is also valid and represents a single item
This commit is contained in:
TrueBrain authored and Łukasz Langa committed 2016-12-19 13:09:04 -08:00
1 parent 2058ae30ab
commit 7e89fc0d49
4 files changed
+2 -2

No files matched your search

-1
View File
@@ -13,7 +13,6 @@ AF_UNSPEC = 0 # from socket
AI_PASSIVE = 0
class Handle:
__slots__ = ... # type: List[str]
_cancelled = False
_args = ... # type: List[Any]
def __init__(self, callback: Callable[..., Any], args: List[Any],
-1
View File
@@ -15,7 +15,6 @@ from concurrent.futures import (
class InvalidStateError(Error): ...
class _TracebackLogger:
__slots__ = ... # type: List[str]
exc = ... # type: BaseException
tb = ... # type: List[str]
def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ...