You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a bug. Once I tried to use an f-string-based docstring to reuse something inside because we use docstrings to generate OpenAPI spec. Turned out it doesn't work.
The text was updated successfully, but these errors were encountered:
Rule request
Thesis
F-strings and bytes cannot be used as a docstring (raw strings is ok). For example:
In the example above, neither
inspect.getdoc
norast.get_docstring
will interpret the f-string as a docstring.Also,
get_docstring
is a good reference for the check implementation: https://github.com/python/cpython/blob/3.8/Lib/ast.py#L236-L259Reasoning
It's a bug. Once I tried to use an f-string-based docstring to reuse something inside because we use docstrings to generate OpenAPI spec. Turned out it doesn't work.
The text was updated successfully, but these errors were encountered: