mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
Replace int | SupportsIndex with SupportsIndex (#15389)
This commit is contained in:
+4
-4
@@ -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]
|
||||
|
||||
|
||||
@@ -352,7 +352,7 @@ class Connection:
|
||||
self, name: str, num_params: int, aggregate_class: Callable[[], _WindowAggregateClass] | None, /
|
||||
) -> None: ...
|
||||
|
||||
def create_collation(self, name: str, callback: Callable[[str, str], int | SupportsIndex] | None, /) -> None: ...
|
||||
def create_collation(self, name: str, callback: Callable[[str, str], SupportsIndex] | None, /) -> None: ...
|
||||
def create_function(
|
||||
self, name: str, narg: int, func: Callable[..., _SqliteData] | None, *, deterministic: bool = False
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user