From abef251c24ba29728e7d9c47f0f6ddd2d018be7a Mon Sep 17 00:00:00 2001 From: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:41:05 -0800 Subject: [PATCH] Fix type of ErrorObject.code (#1250) --- 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]