-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-91118: Fix docstrings that do not honor --without-doc-strings #31769
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
Changes from 6 commits
d6db6ca
4a4f018
1a87604
745c887
b04a234
a9c6225
cf019f6
e5d5613
62da070
87ebe0e
a4a94be
c4a5025
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||
Classes and functions that unconditionally declared their docstrings | ||||||
ignoring --without-doc-strings compilation flag no longer do so. | ||||||
|
||||||
The classes affected are :class:`~ctypes.UnionType`, | ||||||
:class:`~pickle.PickleBuffer`, and :class:`~types.GenericAlias`. | ||||||
|
||||||
The functions affected are :func:`ctypes.addressof`, | ||||||
:func:`ctypes.alignment`, :func:`ctypes.byref`, | ||||||
:func:`ctypes.CopyComPointer`, :func:`ctypes.FormatError`, | ||||||
:func:`ctypes.FreeLibrary`, :func:`ctypes.LoadLibrary`, and | ||||||
:func:`ctypes.sizeof`, along with a bunch of methods in | ||||||
:class:`~_ctypes.PyCPointerType:, :class:`~_ctypes.PyCSimpleType:, and | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
:class:`~_ctypes.PyCStructType:. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think that if a flag exists, it should work fully. Also it's enabled by default so strings that should not be in the binary are no longer there. |
||||||
|
||||||
Patch by Oleg Iarygin. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
All docstrings in code snippets are now wrapped into :func:`PyDoc_STR` to | ||
not teach programmers violation of `PEP 7's Documentation Strings paragraph | ||
arhadthedev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<https://www.python.org/dev/peps/pep-0007/#documentation-strings>`_. Patch | ||
by Oleg Iarygin. |
Uh oh!
There was an error while loading. Please reload this page.