Skip to content

Commit

Permalink
Replace typing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley van Lee committed Oct 7, 2024
1 parent ff06ca6 commit da5177a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scrapy_webarchive/downloadermiddlewares.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
from typing import Union

from scrapy import signals
from scrapy.crawler import Crawler
Expand All @@ -10,7 +9,7 @@
from scrapy.spiders import Spider
from scrapy.statscollectors import StatsCollector
from smart_open import open
from typing_extensions import Self
from typing_extensions import Self, Union

from scrapy_webarchive.wacz import MultiWaczFile, WaczFile
from scrapy_webarchive.warc import record_transformer
Expand Down
2 changes: 1 addition & 1 deletion scrapy_webarchive/middleware.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
from typing import Iterable, Self, Union
from urllib.parse import urlparse

from scrapy import Request, Spider, signals
Expand All @@ -8,6 +7,7 @@
from scrapy.settings import Settings
from scrapy.statscollectors import StatsCollector
from smart_open import open
from typing_extensions import Iterable, Self, Union

from scrapy_webarchive.wacz import MultiWaczFile, WaczFile
from scrapy_webarchive.warc import record_transformer
Expand Down
2 changes: 1 addition & 1 deletion scrapy_webarchive/warc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import uuid
from datetime import datetime, timezone
from io import BytesIO
from typing import List, Tuple
from urllib.parse import urlparse

from scrapy import __version__ as scrapy_version
from scrapy.http.request import Request
from scrapy.http.response import Response
from scrapy.responsetypes import ResponseTypes
from typing_extensions import List, Tuple
from warc.warc import WARCRecord
from warcio.recordloader import ArcWarcRecord
from warcio.statusandheaders import StatusAndHeaders
Expand Down

0 comments on commit da5177a

Please sign in to comment.