From 7737e519a34b99376d5f2b8839fe0869fcfd3833 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 16 Nov 2017 08:44:48 -0800 Subject: [PATCH] Add __dict__ to object in Python 2 (#1746) Use str as key type for __dict__ --- stdlib/2/__builtin__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 4b3e719b2..d9deafded 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -28,6 +28,7 @@ _TT = TypeVar('_TT', bound='type') class object: __doc__ = ... # type: Optional[str] __class__ = ... # type: type + __dict__ = ... # type: Dict[str, Any] __slots__ = ... # type: Optional[Union[str, unicode, Iterable[Union[str, unicode]]]] __module__ = ... # type: str @@ -64,7 +65,6 @@ class type(object): __bases__ = ... # type: Tuple[type, ...] __name__ = ... # type: str __module__ = ... # type: str - __dict__ = ... # type: Dict[unicode, Any] @overload def __init__(self, o: object) -> None: ...