Scrapy, a fast high-level web crawling & scraping framework for Python.
Use typing.Coroutine instead of types.CoroutineType.
Andrey Rakhmatullin262c10d85bd3
diff --git a/scrapy/commands/parse.py b/scrapy/commands/parse.pyindex f916a3e75..ce6f4dc51 100644--- a/scrapy/commands/parse.py+++ b/scrapy/commands/parse.py@@ -3,11 +3,11 @@ import functoolsimport inspectimport jsonimport logging-from types import CoroutineTypefrom typing import (Any,AsyncGenerator,Callable,+ Coroutine,Dict,Iterable,List,@@ -140,7 +140,7 @@ class Command(BaseRunSpiderCommand):@overloaddef 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