Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpx/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ def __bool__(self) -> bool:

class _CookieCompatRequest(urllib.request.Request):
"""
Wraps a `Request` instance up in a compatability interface suitable
Wraps a `Request` instance up in a compatibility interface suitable
for use with `CookieJar` operations.
"""

Expand All @@ -1212,7 +1212,7 @@ def add_unredirected_header(self, key: str, value: str) -> None:

class _CookieCompatResponse:
"""
Wraps a `Request` instance up in a compatability interface suitable
Wraps a `Request` instance up in a compatibility interface suitable
for use with `CookieJar` operations.
"""

Expand Down
2 changes: 1 addition & 1 deletion httpx/status_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ def is_server_error(cls, value: int) -> bool:

codes = StatusCode

#  Include lower-case styles for `requests` compatability.
#  Include lower-case styles for `requests` compatibility.
for code in codes:
setattr(codes, code._name_.lower(), int(code))
2 changes: 1 addition & 1 deletion tests/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def threadpool(func):
"""
Our sync tests should run in seperate thread to the uvicorn server.
Our sync tests should run in separate thread to the uvicorn server.
"""

@functools.wraps(func)
Expand Down
2 changes: 1 addition & 1 deletion tests/dispatch/test_threaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_threaded_request_body_streaming():

def test_dispatch_class():
"""
Use a syncronous 'Dispatcher' class directly.
Use a synchronous 'Dispatcher' class directly.
"""
url = "https://example.org/"
with MockDispatch() as dispatcher:
Expand Down