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
2016-12-19 22:09:04 +01:00
committed by Łukasz Langa
parent 2058ae30ab
commit 7e89fc0d49
4 changed files with 2 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ class object:
__doc__ = ... # type: Optional[str]
__class__ = ... # type: type
__dict__ = ... # type: Dict[str, Any]
__slots__ = ... # type: Optional[Union[str, Iterable[str]]]
def __init__(self) -> None: ...
def __new__(cls) -> Any: ...