Skip to content

Conversation

mbroshi-stripe
Copy link
Contributor

Why?

In #1558, a user reported issues using _async functions caused by needing to import httpx. This PR makes the import requirements clearer in our README.

What?

  • Adds explicit mention of required import's when using async functionality

@mbroshi-stripe mbroshi-stripe marked this pull request as ready for review September 5, 2025 20:46
@mbroshi-stripe mbroshi-stripe requested a review from a team as a code owner September 5, 2025 20:46
Copy link
Member

@xavdid-stripe xavdid-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doesn't quite address the linked issue. Their problem was that we import httpx but don't declare a dependency on it. So when they pip install stripe, they have to know to also pip install httpx or there are runtime failures.

To fix, we should either:

  • declare a dependency on httpx(which IMO we shouldn't do until we do some other plumbing upgrades), or
  • document in the # Async section that to make async requests, users should also install (/declare a dependency on) httpx

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