mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add __dict__ to object in Python 2 (#1746)
Use str as key type for __dict__
This commit is contained in:
committed by
Jelle Zijlstra
parent
7c11ae03de
commit
7737e519a3
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user