Skip to content

Commit 65acc0e

Browse files
committed
Fix Ruff typing import checks
1 parent 2f96439 commit 65acc0e

18 files changed

Lines changed: 27 additions & 25 deletions

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Setup for Sybil."""
22

3-
import io
3+
import io # noqa: TC003
44
import uuid
5-
from collections.abc import Generator
5+
from collections.abc import Generator # noqa: TC003
66
from doctest import ELLIPSIS
77
from pathlib import Path
88

src/vws/_async_vws_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from beartype import BeartypeConf, beartype
66
from vws_auth_tools import authorization_header, rfc_1123_date
77

8-
from vws.response import Response
9-
from vws.transports import AsyncTransport
8+
from vws.response import Response # noqa: TC001
9+
from vws.transports import AsyncTransport # noqa: TC001
1010

1111

1212
@beartype(conf=BeartypeConf(is_pep484_tower=True))

src/vws/_vws_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from beartype import BeartypeConf, beartype
66
from vws_auth_tools import authorization_header, rfc_1123_date
77

8-
from vws.response import Response
9-
from vws.transports import Transport
8+
from vws.response import Response # noqa: TC001
9+
from vws.transports import Transport # noqa: TC001
1010

1111

1212
@beartype(conf=BeartypeConf(is_pep484_tower=True))

src/vws/async_vumark_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from vws.exceptions.custom_exceptions import ServerError
1212
from vws.exceptions.vws_exceptions import TooManyRequestsError
1313
from vws.transports import AsyncHTTPXTransport, AsyncTransport
14-
from vws.vumark_accept import VuMarkAccept
14+
from vws.vumark_accept import VuMarkAccept # noqa: TC001
1515

1616

1717
@beartype(conf=BeartypeConf(is_pep484_tower=True))

src/vws/async_vws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
TargetStatuses,
2424
TargetSummaryReport,
2525
)
26-
from vws.response import Response
26+
from vws.response import Response # noqa: TC001
2727
from vws.transports import AsyncHTTPXTransport, AsyncTransport
2828

2929

src/vws/exceptions/base_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
Cloud Recognition Web API.
55
"""
66

7-
from collections.abc import Mapping
7+
from collections.abc import Mapping # noqa: TC003
88
from typing import ClassVar
99

1010
from beartype import beartype
1111

12-
from vws.response import Response
12+
from vws.response import Response # noqa: TC001
1313

1414

1515
@beartype

src/vws/exceptions/custom_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from beartype import beartype
88

9-
from vws.response import Response
9+
from vws.response import Response # noqa: TC001
1010

1111

1212
@beartype

src/vws/transports.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
"""HTTP transport implementations for VWS clients."""
22

3-
from collections.abc import Awaitable
4-
from typing import Protocol, Self, runtime_checkable
3+
from typing import TYPE_CHECKING, Protocol, Self, runtime_checkable
54

65
import httpx
76
import requests
87
from beartype import BeartypeConf, beartype
98

109
from vws.response import Response
1110

11+
if TYPE_CHECKING:
12+
from collections.abc import Awaitable
13+
1214

1315
@runtime_checkable
1416
class Transport(Protocol):

src/vws/vumark_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from vws.exceptions.custom_exceptions import ServerError
1111
from vws.exceptions.vws_exceptions import TooManyRequestsError
1212
from vws.transports import RequestsTransport, Transport
13-
from vws.vumark_accept import VuMarkAccept
13+
from vws.vumark_accept import VuMarkAccept # noqa: TC001
1414

1515

1616
@beartype(conf=BeartypeConf(is_pep484_tower=True))

src/vws/vws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
TargetStatuses,
2323
TargetSummaryReport,
2424
)
25-
from vws.response import Response
25+
from vws.response import Response # noqa: TC001
2626
from vws.transports import RequestsTransport, Transport
2727

2828

0 commit comments

Comments
 (0)