Make scrapy fetch work with scrapy-poet (#6872)

This commit is contained in:
Adrián Chaves 2025-06-06 16:09:51 +02:00 committed by GitHub
parent d329eedfef
commit 744edb9ba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
from __future__ import annotations
import sys
from argparse import Namespace # noqa: TC003
from typing import TYPE_CHECKING
from w3lib.url import is_url
@ -12,7 +13,7 @@ from scrapy.utils.datatypes import SequenceExclude
from scrapy.utils.spider import DefaultSpider, spidercls_for_request
if TYPE_CHECKING:
from argparse import ArgumentParser, Namespace
from argparse import ArgumentParser
from scrapy import Spider