Repository navigation
Conversation
…eate_ssl_context Refs encode#3355. Covers the public API classes that had no docstrings, complementary to the module/Request/Response docstrings in encode#3864. Adds test_public_api_docstrings to tests/test_exported_members.py.
This branch has not been deployed
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.
Refs #3355.
Following up on my comment on #3355: this adds docstrings to the public API names that currently have none, deliberately complementary to #3864 — that PR covers the
httpx/__init__.pymodule docstring and theRequest/Responseclass docstrings, and nothing here overlaps with it.What's covered
BaseTransport,AsyncBaseTransport,HTTPTransport,AsyncHTTPTransport(with full parameter lists matching their__init__signatures),MockTransportByteStream,SyncByteStream,AsyncByteStreamDigestAuth(mirroring the existingBasicAuthwording),Proxy, andcreate_ssl_contextThe style follows the existing house format — the summary +
**Parameters:**list used byClient/Limits, the summary + fenced example used byASGITransport, andBasicAuth's one-liner pattern forDigestAuth. Purely additive: no existing text or behaviour changed.Test
Adds
test_public_api_docstrings()totests/test_exported_members.py, asserting these members stay documented (same pattern as the test in #3864 — if that merges first, the two can be folded into one function on rebase).Verification
pytest tests/test_exported_members.py— 2/2 passed.ruff format --diffandruff checkclean on the touched files.tests/test_config.py,tests/test_auth.py,tests/test_content.py, client transport tests) show failures identical to unmodified master in my sandbox environment — no regressions from this change.