Skip to content

Commit 25c66ad

Browse files
committed
Fix a lint issue
1 parent 40176d3 commit 25c66ad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/vws/query.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import datetime
66
import io
7-
from typing import List
7+
from typing import List, Optional
88
from urllib.parse import urljoin
99

1010
import requests
@@ -21,10 +21,6 @@
2121
from vws.reports import QueryResult, TargetData
2222

2323

24-
def _cloud_reco_response_item_to_query_result():
25-
pass
26-
27-
2824
class CloudRecoService:
2925
"""
3026
An interface to the Vuforia Cloud Recognition Web APIs.
@@ -142,6 +138,7 @@ def query(
142138
result = []
143139
result_list = list(response.json()['results'])
144140
for item in result_list:
141+
target_data: Optional[TargetData] = None
145142
if 'target_data' in item:
146143
target_data_dict = item['target_data']
147144
metadata = target_data_dict['application_metadata']
@@ -154,8 +151,6 @@ def query(
154151
application_metadata=metadata,
155152
target_timestamp=target_timestamp,
156153
)
157-
else:
158-
target_data = None
159154

160155
query_result = QueryResult(
161156
target_id=item['target_id'],

0 commit comments

Comments
 (0)