diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index b6de92b57b8d..9e7191ae92bb 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -38,6 +38,9 @@ class object: def __str__(self) -> str: ... def __repr__(self) -> str: ... def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... class type: __bases__ = ... # type: Tuple[type, ...] @@ -161,7 +164,6 @@ class float(SupportsFloat, SupportsInt, SupportsAbs[float]): def __float__(self) -> float: ... def __abs__(self) -> float: ... def __hash__(self) -> int: ... - def __format__(self, format_spec: AnyStr) -> str: ... class complex(SupportsAbs[float]): @overload diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 3847506a826a..6fce14d94597 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -41,6 +41,9 @@ class object: def __str__(self) -> str: ... def __repr__(self) -> str: ... def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... class type: __bases__ = ... # type: Tuple[type, ...] @@ -150,7 +153,6 @@ class float(SupportsFloat, SupportsInt, SupportsAbs[float]): def __float__(self) -> float: ... def __abs__(self) -> float: ... def __hash__(self) -> int: ... - def __format__(self, format_spec: str) -> str: ... class complex(SupportsAbs[float]): @overload @@ -638,7 +640,6 @@ class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): def __init__(self, iterable: Iterable[_T], start: int = 0) -> None: ... def __iter__(self) -> Iterator[Tuple[int, _T]]: ... def __next__(self) -> Tuple[int, _T]: ... - # TODO __getattribute__ class range(Sequence[int]): @overload