Skip to content

Commit 9d83dcb

Browse files
committed
add missing import future annotations
1 parent 5332743 commit 9d83dcb

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/crawlee/_utils/http.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from __future__ import annotations
2+
3+
14
def is_status_code_error(value: int) -> bool:
25
"""Returns `True` for 4xx or 5xx status codes, `False` otherwise."""
36
return is_status_code_client_error(value) or is_status_code_server_error(value)

src/crawlee/fingerprint_suite/_consts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
# ruff: noqa: E501
24

35
COMMON_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'

src/crawlee/playwright_crawler/_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
from contextlib import suppress
35

tests/unit/fingerprint_suite/test_header_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from crawlee.fingerprint_suite import HeaderGenerator
24

35

tests/unit/test_service_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from unittest.mock import Mock
24

35
import pytest

0 commit comments

Comments
 (0)