-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raw docstring (leadingr
) defeats form feed\f
truncation
#10998
Labels
bug
Something isn't working
Comments
Kludex
added
question
Question or problem
bug
Something isn't working
and removed
question
Question or problem
labels
Jan 21, 2024
Well, With change you propose to docstrings like |
opened the#11149pr self.description=codecs.decode(self.description,"unicode_escape") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in#10531
Originally posted byjamesbrazaOctober 26, 2023
First Check
Commit to Help
Example Code
Description
Running
ruff==0.1.3
on this,D301
will autofix to make the docstring be a raw string (lead byr
).However, this breaks the form feed
\f
truncation from working, perhttps://fastapi.tiangolo /advanced/path-operation-advanced-configuration/#advanced-description-from-docstringI think form feed
\f
truncation should still work even if the docstring is a raw string.Operating System
macOS
Operating System Details
n/a
FastAPI Version
0.104.0
Pydantic Version
2.4.2
Python Version
3.11.5
Additional Context
No response
The text was updated successfully, but these errors were encountered: