Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe_event_handler: Fix UP038.
Anders Kaseorg3b84dd3b8cb2
diff --git a/corporate/lib/stripe_event_handler.py b/corporate/lib/stripe_event_handler.pyindex afbdc20932d..1b2411bbcdf 100644--- a/corporate/lib/stripe_event_handler.py+++ b/corporate/lib/stripe_event_handler.py@@ -114,7 +114,7 @@ def handle_checkout_session_completed_event(session.customer, stripe_session.metadata.get("user_id"))payment_method = stripe_setup_intent.payment_method- assert isinstance(payment_method, (str, type(None))) # noqa: UP038 # https://github.com/python/mypy/issues/17413+ assert isinstance(payment_method, str | None)if session.type in [Session.CARD_UPDATE_FROM_BILLING_PAGE,