Skip to content

Commit f28babc

Browse files
committed
Fix some lint issues
1 parent 969287e commit f28babc

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/vws/vws.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ def wait_for_target_processed(self, target_id: str) -> None:
227227
# hitting the request quota.
228228
sleep(0.2)
229229

230-
# We wait 0.2 seconds rather than less than that to decrease the
231-
# number of calls made to the API, to decrease the likelihood of
232-
# hitting the request quota.
233-
sleep(0.2)
234-
235230
def list_targets(self) -> List[str]:
236231
"""
237232
List target IDs.
@@ -315,7 +310,7 @@ def delete_target(self, target_id: str) -> None:
315310

316311
result_code = response.json()['result_code']
317312
if _ResultCodes(result_code) == _ResultCodes.SUCCESS:
318-
return dict(response.json())
313+
return
319314

320315
exception = _EXCEPTIONS[_ResultCodes(result_code)]
321316
raise exception(response=response)

tests/test_unknown_target.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
be given.
44
"""
55

6-
from typing import Callable
6+
from typing import Any, Callable, Dict, Union
77

88
import pytest
99
from _pytest.fixtures import SubRequest
@@ -18,17 +18,20 @@ def _delete_target(client: VWS) -> Callable[[str], None]:
1818

1919

2020
@pytest.fixture()
21-
def _get_target_record(client: VWS) -> Callable[[str], None]:
21+
def _get_target_record(client: VWS,
22+
) -> Callable[[str], Dict[str, Union[str, int]]]:
2223
return client.get_target_record
2324

2425

2526
@pytest.fixture()
26-
def _wait_for_target_processed(client: VWS) -> Callable[[str], None]:
27+
def _wait_for_target_processed(client: VWS) -> Any:
2728
return client.wait_for_target_processed
2829

2930

3031
@pytest.fixture()
31-
def _get_target_summary_report(client: VWS) -> Callable[[str], None]:
32+
def _get_target_summary_report(
33+
client: VWS,
34+
) -> Callable[[str], Dict[str, Union[str, int]]]:
3235
return client.get_target_summary_report
3336

3437

0 commit comments

Comments
 (0)