Scrapy, a fast high-level web crawling & scraping framework for Python.
Make scrapy fetch work with scrapy-poet (#6872)
Adrián Chaves744edb9ba9e2
diff --git a/scrapy/commands/fetch.py b/scrapy/commands/fetch.pyindex ef6e13de2..0aaff6c25 100644--- a/scrapy/commands/fetch.py+++ b/scrapy/commands/fetch.py@@ -1,6 +1,7 @@from __future__ import annotationsimport sys+from argparse import Namespace # noqa: TC003from typing import TYPE_CHECKINGfrom w3lib.url import is_url@@ -12,7 +13,7 @@ from scrapy.utils.datatypes import SequenceExcludefrom scrapy.utils.spider import DefaultSpider, spidercls_for_requestif TYPE_CHECKING:- from argparse import ArgumentParser, Namespace+ from argparse import ArgumentParserfrom scrapy import Spider