@@ -69,9 +69,7 @@ def test_invalid_given_id(vws_client: VWS) -> None:
6969 assert exc .value .target_id == target_id
7070
7171
72- def test_add_bad_name (
73- vws_client : VWS , high_quality_image : io .BytesIO | io .BufferedRandom
74- ) -> None :
72+ def test_add_bad_name (vws_client : VWS , high_quality_image : io .BytesIO ) -> None :
7573 """
7674 When a name with a bad character is given, an
7775 ``OopsAnErrorOccurredPossiblyBadName`` exception is raised.
@@ -97,7 +95,7 @@ def test_request_quota_reached() -> None:
9795 """
9896
9997
100- def test_fail (high_quality_image : io .BytesIO | io . BufferedRandom ) -> None :
98+ def test_fail (high_quality_image : io .BytesIO ) -> None :
10199 """
102100 A ``Fail`` exception is raised when the server access key does not exist.
103101 """
@@ -138,7 +136,7 @@ def test_bad_image(vws_client: VWS) -> None:
138136
139137def test_target_name_exist (
140138 vws_client : VWS ,
141- high_quality_image : io .BytesIO | io . BufferedRandom ,
139+ high_quality_image : io .BytesIO ,
142140) -> None :
143141 """
144142 A ``TargetNameExist`` exception is raised after adding two targets with
@@ -165,7 +163,7 @@ def test_target_name_exist(
165163
166164
167165def test_project_inactive (
168- high_quality_image : io .BytesIO | io . BufferedRandom ,
166+ high_quality_image : io .BytesIO ,
169167) -> None :
170168 """
171169 A ``ProjectInactive`` exception is raised if adding a target to an
@@ -193,7 +191,7 @@ def test_project_inactive(
193191
194192def test_target_status_processing (
195193 vws_client : VWS ,
196- high_quality_image : io .BytesIO | io . BufferedRandom ,
194+ high_quality_image : io .BytesIO ,
197195) -> None :
198196 """
199197 A ``TargetStatusProcessing`` exception is raised if trying to delete a
@@ -216,7 +214,7 @@ def test_target_status_processing(
216214
217215def test_metadata_too_large (
218216 vws_client : VWS ,
219- high_quality_image : io .BytesIO | io . BufferedRandom ,
217+ high_quality_image : io .BytesIO ,
220218) -> None :
221219 """
222220 A ``MetadataTooLarge`` exception is raised if the metadata given is too
@@ -236,7 +234,7 @@ def test_metadata_too_large(
236234
237235def test_request_time_too_skewed (
238236 vws_client : VWS ,
239- high_quality_image : io .BytesIO | io . BufferedRandom ,
237+ high_quality_image : io .BytesIO ,
240238) -> None :
241239 """
242240 A ``RequestTimeTooSkewed`` exception is raised when the request time is
@@ -270,7 +268,7 @@ def test_request_time_too_skewed(
270268
271269
272270def test_authentication_failure (
273- high_quality_image : io .BytesIO | io . BufferedRandom ,
271+ high_quality_image : io .BytesIO ,
274272) -> None :
275273 """
276274 An ``AuthenticationFailure`` exception is raised when the server access key
@@ -301,7 +299,7 @@ def test_authentication_failure(
301299
302300def test_target_status_not_success (
303301 vws_client : VWS ,
304- high_quality_image : io .BytesIO | io . BufferedRandom ,
302+ high_quality_image : io .BytesIO ,
305303) -> None :
306304 """
307305 A ``TargetStatusNotSuccess`` exception is raised when updating a target
@@ -350,7 +348,7 @@ def test_vwsexception_inheritance() -> None:
350348
351349def test_base_exception (
352350 vws_client : VWS ,
353- high_quality_image : io .BytesIO | io . BufferedRandom ,
351+ high_quality_image : io .BytesIO ,
354352) -> None :
355353 """
356354 ``VWSException``s has a response property.
0 commit comments