From a064012e5850d71d34ce46d976ff79267db551de Mon Sep 17 00:00:00 2001 From: Rohan Santhosh Kumar <181558744+Rohan5commit@users.noreply.github.com> Date: Tue, 28 Apr 2026 10:28:58 +0800 Subject: [PATCH] docs: fix _models docstring typos --- httpcore/_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpcore/_models.py b/httpcore/_models.py index 8a65f133..0d85e937 100644 --- a/httpcore/_models.py +++ b/httpcore/_models.py @@ -54,7 +54,7 @@ def enforce_headers( value: HeadersAsMapping | HeadersAsSequence | None = None, *, name: str ) -> list[tuple[bytes, bytes]]: """ - Convienence function that ensure all items in request or response headers + Convenience function that ensures all items in request or response headers are either bytes or strings in the plain ASCII range. """ if value is None: @@ -183,13 +183,13 @@ class URL: """ Represents the URL against which an HTTP request may be made. - The URL may either be specified as a plain string, for convienence: + The URL may either be specified as a plain string, for convenience: ```python url = httpcore.URL("https://www.example.com/") ``` - Or be constructed with explicitily pre-parsed components: + Or be constructed with explicitly pre-parsed components: ```python url = httpcore.URL(scheme=b'https', host=b'www.example.com', port=None, target=b'/')