Skip to content

Commit

Permalink
add missing import future annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Sep 24, 2024
1 parent 5332743 commit 9d83dcb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crawlee/_utils/http.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import annotations


def is_status_code_error(value: int) -> bool:
"""Returns `True` for 4xx or 5xx status codes, `False` otherwise."""
return is_status_code_client_error(value) or is_status_code_server_error(value)
Expand Down
2 changes: 2 additions & 0 deletions src/crawlee/fingerprint_suite/_consts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

# ruff: noqa: E501

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'
Expand Down
2 changes: 2 additions & 0 deletions src/crawlee/playwright_crawler/_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
from contextlib import suppress

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/fingerprint_suite/test_header_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from crawlee.fingerprint_suite import HeaderGenerator


Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_service_container.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from unittest.mock import Mock

import pytest
Expand Down

0 comments on commit 9d83dcb

Please sign in to comment.