py.typed and enable type annotations for the package
py.typed and enables inline type annotations for stripe-python package. Inline type annotations will now take precedence over Typeshed for users who use a type checker or IDE.StripeObject, instead of into generic StripeObject instances.PromotionCode.restrictions.currency_options will now deserialize into dict and not StripeObject.balance_invalid_parameter on enums Invoice.LastFinalizationError, PaymentIntent.LastPaymentError, SetupAttempt.SetupError, and SetupIntent.LastSetupErrorsave.Fetched March 31, 2026