Skip to content

Commit c7d2525

Browse files
committed
Fix type hints for Python tests
1 parent 9b0ddc6 commit c7d2525

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/mock_vws/test_add_target.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def test_name_valid(
378378
],
379379
)
380380
def test_name_invalid(
381-
name: str,
381+
name: str | int | None,
382382
image_file_failed_state: io.BytesIO,
383383
status_code: int,
384384
vws_client: VWS,
@@ -392,7 +392,7 @@ def test_name_invalid(
392392
expected_exception=OopsAnErrorOccurredPossiblyBadName,
393393
) as oops_exc:
394394
vws_client.add_target(
395-
name=name,
395+
name=name, # type: ignore[arg-type]
396396
width=1,
397397
image=image_file_failed_state,
398398
application_metadata=None,
@@ -404,7 +404,7 @@ def test_name_invalid(
404404

405405
with pytest.raises(expected_exception=Fail) as exc:
406406
vws_client.add_target(
407-
name=name,
407+
name=name, # type: ignore[arg-type]
408408
width=1,
409409
image=image_file_failed_state,
410410
application_metadata=None,

tests/mock_vws/test_update_target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def test_name_valid(
545545
],
546546
)
547547
def test_name_invalid(
548-
name: str,
548+
name: str | int | None,
549549
target_id: str,
550550
vuforia_database: VuforiaDatabase,
551551
vws_client: VWS,

0 commit comments

Comments
 (0)