gh-151945: Fix reference warnings in http.cookiejar docs#152816
Open
harjothkhara wants to merge 1 commit into
Open
gh-151945: Fix reference warnings in http.cookiejar docs#152816harjothkhara wants to merge 1 commit into
harjothkhara wants to merge 1 commit into
Conversation
Resolve the nit-picky reference warnings in Doc/library/http.cookiejar.rst and drop the file from Doc/tools/.nitignore so future regressions are caught by CI. Documented targets are qualified with their owning class, for example Cookie.version, CookiePolicy.rfc2965, the urllib.request.Request methods and attributes, and urllib.response.addinfourl.info. References with no documented target become inline literals: the removed get_origin_req_host method. The http.server part of the issue is left for a separate change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Per @picnixz's suggestion in gh-151945, this covers the
http.cookiejarhalf of the issue; @picnixz is taking
http.server.Fixes the Sphinx nit-picky reference warnings for
Doc/library/http.cookiejar.rstand removes the file fromDoc/tools/.nitignoreso future regressions are caught by CI.Cookie.version,CookiePolicy.rfc2965/hide_cookie2, theurllib.request.Requestmethods and attributes, andurllib.response.addinfourl.info.get_origin_req_hostmethod, which has no documentedtarget, becomes an inline literal.
Verified with a full nit-picky build: the file emits no warnings and
Doc/tools/check-warnings.py --fail-if-regression --fail-if-improvedpasses. Documentation-only reference fix, so no NEWS entry (skip news).
Disclosure: I used AI assistance on this change; I've reviewed it and can
explain it.
Doc/library/http.{cookiejar,server}.rst#151945