File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 33Cloud Recognition Web API.
44"""
55
6- from requests import Response
6+ from __future__ import annotations
7+
8+ from typing import TYPE_CHECKING
9+
10+ if TYPE_CHECKING :
11+ from requests import Response
712
813
914class CloudRecoException (Exception ):
Original file line number Diff line number Diff line change 22Configuration, plugins and fixtures for `pytest`.
33"""
44
5- from collections .abc import Iterator
5+ from __future__ import annotations
6+
7+ from typing import TYPE_CHECKING
68
79import pytest
810from mock_vws import MockVWS
911from mock_vws .database import VuforiaDatabase
1012from vws import VWS , CloudRecoService
1113
14+ if TYPE_CHECKING :
15+ from collections .abc import Iterator
16+
1217
1318@pytest .fixture (name = "_mock_database" )
1419def mock_database () -> Iterator [VuforiaDatabase ]:
Original file line number Diff line number Diff line change 22Tests for exceptions raised when using the CloudRecoService.
33"""
44
5- import io
5+ from __future__ import annotations
6+
67import time
78import uuid
89from http import HTTPStatus
10+ from typing import TYPE_CHECKING
911
1012import pytest
1113from mock_vws import MockVWS
2527 RequestEntityTooLarge ,
2628)
2729
30+ if TYPE_CHECKING :
31+ import io
32+
2833
2934def test_too_many_max_results (
3035 cloud_reco_client : CloudRecoService ,
Original file line number Diff line number Diff line change 22Tests for the ``CloudRecoService`` querying functionality.
33"""
44
5- import io
5+ from __future__ import annotations
6+
67import uuid
8+ from typing import TYPE_CHECKING
79
810from mock_vws import MockVWS
911from mock_vws .database import VuforiaDatabase
1012from vws import VWS , CloudRecoService
1113from vws .include_target_data import CloudRecoIncludeTargetData
1214
15+ if TYPE_CHECKING :
16+ import io
17+
1318
1419class TestQuery :
1520 """
You can’t perform that action at this time.
0 commit comments