Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-101100: Fix Sphinx reference warnings#112416
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 service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Direct use of the pyexpat module is deprecated, but this is how to check the version for security purposes
… in library/email.headerregistry.rst
On stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@hugovk.
Sorry,@hugovk and@willingc, I could not cleanly backport this to
|
Sorry,@hugovk and@willingc, I could not cleanly backport this to
|
@@ -147,7 +147,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes. | |||
Return ``1`` if found and removed, ``0`` if not found (no action taken), and ``-1`` if an | |||
error is encountered. Does not raise :exc:`KeyError` for missing keys. Raise a | |||
:exc:`TypeError` if the *key* is unhashable. Unlike the Python :meth:`~set.discard` | |||
:exc:`TypeError` if the *key* is unhashable. Unlike the Python :meth:`~frozenset.discard` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ideally we'd fix it so that the original linked properly, given that frozensets don't have a.discard()
method, but sets do 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Good idea, although I'm not sure how to do it. PR welcome! 🙃
willingc commentedNov 26, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@hugovk or@AlexWaygood Would you mind doing the backports? I'm getting ready for a flight to Japan so will be offline for a while. Thanks! |
Yes, I'll take care of the backports. Enjoy your trip! |
* Fix Sphinx warning in library/xml.rstDirect use of the pyexpat module is deprecated, but this is how to check the version for security purposes* Fix Sphinx warning in library/importlib.resources.rst* Use italics for parameters* Link to the exception* Fix Sphinx warning in library/gzip.rst* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst* Fix Sphinx warning in extending/newtypes.rst* Fix Sphinx warning in c-api/set.rstOn stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs(cherry picked from commit3faf8e5)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Fix Sphinx warning in library/xml.rstDirect use of the pyexpat module is deprecated, but this is how to check the version for security purposes* Fix Sphinx warning in library/importlib.resources.rst* Use italics for parameters* Link to the exception* Fix Sphinx warning in library/gzip.rst* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst* Fix Sphinx warning in extending/newtypes.rst* Fix Sphinx warning in c-api/set.rstOn stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs(cherry picked from commit3faf8e5)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
GH-112420 is a backport of this pull request to the3.12 branch. |
GH-112422 is a backport of this pull request to the3.11 branch. |
* Fix Sphinx warning in library/xml.rstDirect use of the pyexpat module is deprecated, but this is how to check the version for security purposes* Fix Sphinx warning in library/importlib.resources.rst* Use italics for parameters* Link to the exception* Fix Sphinx warning in library/gzip.rst* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst* Fix Sphinx warning in extending/newtypes.rst* Fix Sphinx warning in c-api/set.rstOn stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs(cherry picked from commit3faf8e5)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Fix Sphinx warning in library/xml.rstDirect use of the pyexpat module is deprecated, but this is how to check the version for security purposes* Fix Sphinx warning in library/importlib.resources.rst* Use italics for parameters* Link to the exception* Fix Sphinx warning in library/gzip.rst* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst* Fix Sphinx warning in extending/newtypes.rst* Fix Sphinx warning in c-api/set.rstOn stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs
* Fix Sphinx warning in library/xml.rstDirect use of the pyexpat module is deprecated, but this is how to check the version for security purposes* Fix Sphinx warning in library/importlib.resources.rst* Use italics for parameters* Link to the exception* Fix Sphinx warning in library/gzip.rst* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst* Fix Sphinx warning in extending/newtypes.rst* Fix Sphinx warning in c-api/set.rstOn stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs
Uh oh!
There was an error while loading.Please reload this page.
Fix 7 Sphinx warnings, in most files with a single warning:
Plus a bit of extra cleanup, details in commits.
📚 Documentation preview 📚:https://cpython-previews--112416.org.readthedocs.build/