Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

richardm-stripe
Copy link
Contributor

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

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
Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

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
10 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants