From 93f4384e672f8b50bcc63e94a858d56f4df9a4de Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 7 Dec 2023 14:51:17 -0800 Subject: [PATCH] Add missing explicit reexport for OAuth, Webhook, WebhookSignature (#1157) This is required for mypy to recognize these as exported with --no-implicit-reexport (implied by --strict). https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport Signed-off-by: Anders Kaseorg --- stripe/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stripe/__init__.py b/stripe/__init__.py index 27bc148e4..f5301c707 100644 --- a/stripe/__init__.py +++ b/stripe/__init__.py @@ -39,10 +39,13 @@ log: Optional[Literal["debug", "info"]] = None # OAuth -from stripe._oauth import OAuth +from stripe._oauth import OAuth as OAuth # Webhooks -from stripe._webhook import Webhook, WebhookSignature +from stripe._webhook import ( + Webhook as Webhook, + WebhookSignature as WebhookSignature, +) # Sets some basic information about the running application that's sent along