Skip to content

Include py.typed and enable type annotations for the package - #1104

Merged
richardm-stripe merged 3 commits into
masterfrom
richardm-include-py-typed
Oct 27, 2023
Merged

Include py.typed and enable type annotations for the package#1104
richardm-stripe merged 3 commits into
masterfrom
richardm-include-py-typed

Conversation

@richardm-stripe

@richardm-stripe richardm-stripe commented Oct 26, 2023

Copy link
Copy Markdown
Contributor

Summary

This PR changes setup.py so that inline type annotations are enabled for the stripe-python package. Up until now, the type annotations were just hanging out, existing, but would not be analyzed by type checkers without special effort. Now, anybody who does pip install stripe will experience the inline types. (subject to the resolution order).

See more at the wiki page.

@richardm-stripe
richardm-stripe requested review from a team and anniel-stripe and removed request for a team October 26, 2023 21:31

@pakrym-stripe pakrym-stripe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a description for this one?

@richardm-stripe
richardm-stripe enabled auto-merge (squash) October 27, 2023 00:59
@richardm-stripe
richardm-stripe removed the request for review from anniel-stripe October 27, 2023 01:02
@richardm-stripe
richardm-stripe merged commit 40bd8d4 into master Oct 27, 2023
@richardm-stripe
richardm-stripe deleted the richardm-include-py-typed branch October 27, 2023 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants