Skip to content

Commit

Permalink
Add missing explicit reexport for OAuth, Webhook, WebhookSignature (#…
Browse files Browse the repository at this point in the history
…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 <andersk@mit.edu>
  • Loading branch information
andersk authored Dec 7, 2023
1 parent 8322da6 commit 93f4384
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93f4384

Please sign in to comment.