Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was created by Knope. Merging it will create a new release
Breaking Changes
Switch from Black to Ruff for formatting
black
is no longer a runtime dependency, so if you have them set in custompost_hooks
in a config file, you'll need to make sure they're being installed manually.ruff
is now installed and used by default instead.Use Ruff instead of isort + autoflake at runtime
isort
andautoflake
are no longer runtime dependencies, so if you have them set in custompost_hooks
in a config file, you'll need to make sure they're being installed manually.ruff
is now installed and used by default instead.Features
Support all
text/*
content types in responsesWithin an API response, any content type which starts with
text/
will now be treated the same astext/html
already was—they will return theresponse.text
attribute from the httpx Response.Thanks to @fdintino for the initial implementation, and thanks for the discussions from @kairntech, @rubenfiszel, and @antoneladestito.
Closes #797 and #821.
Support
application/octet-stream
request bodiesEndpoints that accept
application/octet-stream
request bodies are now supported using the sameFile
type as octet-stream responses.Thanks to @kgutwin for the implementation and @rtaycher for the discussion!
PR #899 closes #588
Fixes
Remove useless
pass
statements from generated code