From c70881d20a6e9cdd7be186710dbf3b956a11a1ab Mon Sep 17 00:00:00 2001 From: Annie Li Date: Fri, 23 Feb 2024 09:30:10 -0800 Subject: [PATCH] Fix type of ErrorObject.code --- stripe/_error_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stripe/_error_object.py b/stripe/_error_object.py index cd30fc325..f3556b019 100644 --- a/stripe/_error_object.py +++ b/stripe/_error_object.py @@ -13,7 +13,7 @@ class ErrorObject(StripeObject): charge: Optional[str] - code: int + code: Optional[str] decline_code: Optional[str] doc_url: Optional[str] message: Optional[str]