Skip to content

Commit ad8f0d9

Browse files
Use TypeIs[Callable[..., Any]] rather than TypeIs[Callable]
1 parent dd8c9e8 commit ad8f0d9

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ else:
15681568
def bin(number: SupportsIndex, /) -> str: ...
15691569

15701570
def breakpoint(*args: Any, **kws: Any) -> None: ...
1571-
def callable(obj: object, /) -> TypeIs[Callable]: ...
1571+
def callable(obj: object, /) -> TypeIs[Callable[..., Any]]: ...
15721572
def chr(i: SupportsIndex, /) -> str: ...
15731573
def aiter(async_iterable: SupportsAiter[_SupportsAnextT_co], /) -> _SupportsAnextT_co: ...
15741574

stubs/six/six/__init__.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import operator
22
import types
33
import unittest
44
from _typeshed import IdentityFunction, SupportsGetItem, Unused
5-
from builtins import (
6-
callable as callable, # pyright: ignore[reportUnknownVariableType,reportUnnecessaryTypeIgnoreComment]
7-
next as next,
8-
)
5+
from builtins import callable as callable, next as next
96
from collections.abc import Callable, ItemsView, Iterable, Iterator as _Iterator, KeysView, Mapping, ValuesView
107
from functools import wraps as wraps
118
from importlib.util import spec_from_loader as spec_from_loader

0 commit comments

Comments
 (0)