Use typing.Coroutine instead of types.CoroutineType.

This commit is contained in:
Andrey Rakhmatullin 2024-06-05 22:11:34 +05:00
parent de146ad7ce
commit 262c10d85b
1 changed files with 2 additions and 2 deletions

View File

@ -3,11 +3,11 @@ import functools
import inspect
import json
import logging
from types import CoroutineType
from typing import (
Any,
AsyncGenerator,
Callable,
Coroutine,
Dict,
Iterable,
List,
@ -140,7 +140,7 @@ class Command(BaseRunSpiderCommand):
@overload
def iterate_spider_output(
self, result: Union[AsyncGenerator[_T, None], CoroutineType[Any, Any, _T]]
self, result: Union[AsyncGenerator[_T, None], Coroutine[Any, Any, _T]]
) -> Deferred[_T]: ...
@overload