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

Fix V2 ListObject.data type hint #1442

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

jar-stripe
Copy link
Contributor

@jar-stripe jar-stripe commented Jan 13, 2025

Why?

The V2 ListObject data member is defined with the type hint List[StripeObject] which does not take advantage of of the generic type parameter to give accurate type hints. This PR corrects the type hint so that the data will be of type List[T]

What?

  • changed v2 ListObject data type from List[StripeObject] to List[T]

Changelog

  • Change stripe.v2.ListObject.data type hint from List[StripeObject] to List[T] where T is the specific stripe object contained within the list

@jar-stripe jar-stripe merged commit 39ce6f4 into master Jan 13, 2025
15 checks passed
@jar-stripe jar-stripe deleted the jar/fix-v2-list-data-type branch January 13, 2025 21:28
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.

2 participants