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

Improve types in _http_client.py #1232

Merged
merged 6 commits into from
Feb 13, 2024

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Feb 10, 2024

Adds more type annotations to _http_client.py.

Mostly just making types narrower / describe what exists. I was really hoping to be able to make the type for streaming endpoints more specific than Any but, because stripe.default_http_client can change dynamically, you really can't do much better.

@richardm-stripe richardm-stripe marked this pull request as ready for review February 13, 2024 20:42
@richardm-stripe richardm-stripe requested review from a team and helenye-stripe and removed request for a team February 13, 2024 20:45
@richardm-stripe richardm-stripe enabled auto-merge (squash) February 13, 2024 21:28
@richardm-stripe richardm-stripe merged commit 6b0d81e into master Feb 13, 2024
14 checks passed
@xavdid-stripe xavdid-stripe deleted the richardm-improve-http-client-types branch May 10, 2024 03:31
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.

None yet

2 participants