Skip to content

Commit 581aeb9

Browse files
committed
Progress towards using new data type
1 parent 27fb83f commit 581aeb9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/vws/query.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
"""
44

55
import io
6-
from typing import Any, Dict, List
6+
from typing import List
77
from urllib.parse import urljoin
88

99
import requests
1010
from urllib3.filepost import encode_multipart_formdata
1111
from vws_auth_tools import authorization_header, rfc_1123_date
1212

13-
from ._result_codes import raise_for_result_code
14-
from .exceptions import (
13+
from vws._result_codes import raise_for_result_code
14+
from vws.exceptions import (
1515
ConnectionErrorPossiblyImageTooLarge,
1616
MatchProcessing,
1717
MaxNumResultsOutOfRange,
1818
)
19-
from .include_target_data import CloudRecoIncludeTargetData
19+
from vws.include_target_data import CloudRecoIncludeTargetData
20+
from vws.reports import QueryResult
2021

2122

2223
class CloudRecoService:
@@ -46,7 +47,7 @@ def query(
4647
max_num_results: int = 1,
4748
include_target_data:
4849
CloudRecoIncludeTargetData = CloudRecoIncludeTargetData.TOP,
49-
) -> List[Dict[str, Any]]:
50+
) -> List[QueryResult]:
5051
"""
5152
Use the Vuforia Web Query API to make an Image Recognition Query.
5253

0 commit comments

Comments
 (0)