Replace int | SupportsIndex with SupportsIndex (#15389)

This commit is contained in:
Guo Ci
2026-02-09 16:38:28 +01:00
committed by GitHub
parent d380c3d21d
commit da6e5e9d8a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1385,10 +1385,10 @@ def abs(x: SupportsAbs[_T], /) -> _T: ...
def all(iterable: Iterable[object], /) -> bool: ...
def any(iterable: Iterable[object], /) -> bool: ...
def ascii(obj: object, /) -> str: ...
def bin(number: int | SupportsIndex, /) -> str: ...
def bin(number: SupportsIndex, /) -> str: ...
def breakpoint(*args: Any, **kws: Any) -> None: ...
def callable(obj: object, /) -> TypeIs[Callable[..., object]]: ...
def chr(i: int | SupportsIndex, /) -> str: ...
def chr(i: SupportsIndex, /) -> str: ...
if sys.version_info >= (3, 10):
def aiter(async_iterable: SupportsAiter[_SupportsAnextT_co], /) -> _SupportsAnextT_co: ...
@@ -1546,7 +1546,7 @@ def hash(obj: object, /) -> int: ...
help: _sitebuiltins._Helper
def hex(number: int | SupportsIndex, /) -> str: ...
def hex(number: SupportsIndex, /) -> str: ...
def id(obj: object, /) -> int: ...
def input(prompt: object = "", /) -> str: ...
@type_check_only
@@ -1713,7 +1713,7 @@ def min(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRichComparis
def next(i: SupportsNext[_T], /) -> _T: ...
@overload
def next(i: SupportsNext[_T], default: _VT, /) -> _T | _VT: ...
def oct(number: int | SupportsIndex, /) -> str: ...
def oct(number: SupportsIndex, /) -> str: ...
_Opener: TypeAlias = Callable[[str, int], int]