You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed small inconsistency in dependency requirements between sync and async methods... Sync methods work immediately after installing the stripe package, while async methods fail with an ImportError unless additional dependencies are installed...
To Reproduce
Install stripe: pip install stripe
Try to use any async method without installing httpx/aiohttp
Observe ImportError
Expected behavior
Both sync and async methods should either:
Work out of the box with the base installation, OR
Clearly document that async support requires additional dependencies
Code snippets
importstripeclient=stripe.StripeClient("sk_test_...")
# This works finecustomer=client.customers.retrieve("cus1")
# This fails with ImportErrorcustomer=awaitclient.customers.retrieve_async("cus1")