-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
making content_length really optinal as intended #11325
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11325 +/- ##
=======================================
Coverage 98.76% 98.76%
=======================================
Files 129 129
Lines 43374 43374
Branches 2323 2323
=======================================
Hits 42837 42837
Misses 383 383
Partials 154 154
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #11325 will not alter performanceComparing Summary
|
I'm not convinced this is correct. Is there a use case where you are calling this function in your code? I was under the impression that users would not access this method.. |
I'm using it with my library: |
Ah, subclasses, always forget about those.. My thinking is that it is beneficial to be a required parameter to ensure that people don't miss it. However, I guess it's also a breaking change to 3.x, so we should probably make it optional in the 3.12 branch atleast. For your project, you'll want to force the @bdraco Does that make sense? Also, interesting project, might be useful for some of our own testing when it comes to parsing issues, HTTP request forgery and such. |
Yes. Seems fine to me |
What do these changes do?
Fix issue made on version 3.12.0
Where content_length argument in function write_bytes supposed to be optional but it's not because it's a positional argument and not keyword argument.