@@ -25,21 +25,21 @@ if sys.version_info >= (3, 11):
2525 def iscoroutinefunction (func : Callable [..., Coroutine [Any , Any , Any ]]) -> bool : ...
2626 @overload
2727 @deprecated ("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead." )
28- def iscoroutinefunction (func : Callable [_P , Awaitable [_T ]]) -> TypeGuard [Callable [_P , Coroutine [Any , Any , _T ]]]: ...
28+ def iscoroutinefunction (func : Callable [_P , Awaitable [_T ]]) -> TypeIs [Callable [_P , Coroutine [Any , Any , _T ]]]: ...
2929 @overload
3030 @deprecated ("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead." )
31- def iscoroutinefunction (func : Callable [_P , object ]) -> TypeGuard [Callable [_P , Coroutine [Any , Any , Any ]]]: ...
31+ def iscoroutinefunction (func : Callable [_P , object ]) -> TypeIs [Callable [_P , Coroutine [Any , Any , Any ]]]: ...
3232 @overload
3333 @deprecated ("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead." )
34- def iscoroutinefunction (func : object ) -> TypeGuard [Callable [..., Coroutine [Any , Any , Any ]]]: ...
34+ def iscoroutinefunction (func : object ) -> TypeIs [Callable [..., Coroutine [Any , Any , Any ]]]: ...
3535else :
3636 # Sometimes needed in Python < 3.11 due to the fact that it supports @coroutine
3737 # which was removed in 3.11 which the inspect version doesn't support.
3838 @overload
3939 def iscoroutinefunction (func : Callable [..., Coroutine [Any , Any , Any ]]) -> bool : ...
4040 @overload
41- def iscoroutinefunction (func : Callable [_P , Awaitable [_T ]]) -> TypeGuard [Callable [_P , Coroutine [Any , Any , _T ]]]: ...
41+ def iscoroutinefunction (func : Callable [_P , Awaitable [_T ]]) -> TypeIs [Callable [_P , Coroutine [Any , Any , _T ]]]: ...
4242 @overload
43- def iscoroutinefunction (func : Callable [_P , object ]) -> TypeGuard [Callable [_P , Coroutine [Any , Any , Any ]]]: ...
43+ def iscoroutinefunction (func : Callable [_P , object ]) -> TypeIs [Callable [_P , Coroutine [Any , Any , Any ]]]: ...
4444 @overload
45- def iscoroutinefunction (func : object ) -> TypeGuard [Callable [..., Coroutine [Any , Any , Any ]]]: ...
45+ def iscoroutinefunction (func : object ) -> TypeIs [Callable [..., Coroutine [Any , Any , Any ]]]: ...
0 commit comments