@@ -123,13 +123,15 @@ def test_checkpoint_error_classification_invalid_param_without_token_execution()
123123 "KMSNotFoundException" ,
124124 ],
125125)
126- def test_durable_api_error_non_retryable_customer_error_codes (error_cls , error_code : str ):
126+ def test_durable_api_error_non_retryable_customer_error_codes (
127+ error_cls , error_code : str
128+ ):
127129 """Test that non-retryable customer error codes (HTTP 502) are classified as EXECUTION."""
128130 error_response = {
129131 "Error" : {"Code" : error_code , "Message" : f"{ error_code } error" },
130132 "ResponseMetadata" : {"HTTPStatusCode" : 502 },
131133 }
132- client_error = ClientError (error_response , "Invoke" )
134+ client_error = ClientError (error_response , "Invoke" ) # type: ignore[arg-type]
133135 result = error_cls .from_exception (client_error )
134136 assert result .error_category == DurableApiErrorCategory .EXECUTION
135137 assert not result .is_retryable ()
@@ -443,13 +445,15 @@ def test_orphaned_child_exception_with_operation_id():
443445 ("ServiceException" , 502 , True ),
444446 ],
445447)
446- def test_boto_client_error_is_retryable (error_code : str , status_code : int , expected_retryable : bool ):
448+ def test_boto_client_error_is_retryable (
449+ error_code : str , status_code : int , expected_retryable : bool
450+ ):
447451 """Test BotoClientError.is_retryable() classification."""
448452 error_response = {
449453 "Error" : {"Code" : error_code , "Message" : "test error" },
450454 "ResponseMetadata" : {"HTTPStatusCode" : status_code },
451455 }
452- client_error = ClientError (error_response , "Invoke" )
456+ client_error = ClientError (error_response , "Invoke" ) # type: ignore[arg-type]
453457 result = BotoClientError .from_exception (client_error )
454458 assert result .is_retryable () == expected_retryable
455459
@@ -480,4 +484,4 @@ def test_durable_api_error_category_backward_compatible_alias():
480484def test_invocation_error_is_retryable_default ():
481485 """Test InvocationError.is_retryable() returns True by default."""
482486 error = InvocationError ("some error" )
483- assert error .is_retryable ()
487+ assert error .is_retryable ()
0 commit comments