stripe / stripe-python

Python library for the Stripe API.
https://stripe.com
MIT License
1.64k stars 418 forks source link

Add lint rule to ensure `async` functions are named `X_async` #1326

Closed xavdid-stripe closed 3 months ago

xavdid-stripe commented 3 months ago

This came from a discussion in https://github.com/stripe/stripe-python/pull/1165#discussion_r1427214415

I exempted 1 existing function (StripeStreamResponseAsync.read). We could rename it, but I don't have a good sense of how breaking that is, so it's not urgent.

This should catch future things though!