Skip to content

Conversation

@cuu508
Copy link

@cuu508 cuu508 commented Oct 24, 2025

The possible return types are listed here:
https://developer.paypal.com/braintree/docs/reference/response/payment-method/python/

Annoyingly, these classes don't inherit from PaymentMethod, so need to be listed out.

cuu508 and others added 2 commits October 24, 2025 17:55
@AlexWaygood AlexWaygood changed the title Tighhten the return type in braintree.PaymentMethod.find() Tighten the return type in braintree.PaymentMethod.find() Oct 24, 2025
@github-actions

This comment has been minimized.

The Braintree docs don't list the complete list of
payment types the library can return, the complete list
can be found in braintree.payment_method_parser
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

1 participant