remove Optional from type of __slots__ (#2128)

Fixes #1853
This commit is contained in:
Jelle Zijlstra
2018-06-11 14:29:11 -07:00
committed by Guido van Rossum
parent c5e98308c0
commit f5a74fd5da
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -30,7 +30,7 @@ class object:
__doc__ = ... # type: Optional[str]
__class__ = ... # type: type
__dict__ = ... # type: Dict[str, Any]
__slots__ = ... # type: Optional[Union[str, Iterable[str]]]
__slots__ = ... # type: Union[str, Iterable[str]]
__module__ = ... # type: str
if sys.version_info >= (3, 6):
__annotations__ = ... # type: Dict[str, Any]