Skip to content
Myr

Fix typos in comments (#294)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Min ho Kim · committed by Florimond Manca · parent 8c456e4 · Browse files · 4 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+5 added−5 removed

  • tests:+2 added−2 removed
  • other:+3 added−3 removed

4 files+5 added−5 removed

modified:httpx/models.py+2 added-2 removed
1192 unmodified lines
1193 return False11941195 class _CookieCompatRequest(urllib.request.Request):1196 """1197 Wraps a `Request` instance up in a compatability interface suitable1197 Wraps a `Request` instance up in a compatibility interface suitable1198 for use with `CookieJar` operations.1199 """12001201 def __init__(self, request: BaseRequest) -> None:
9 unmodified lines
1211 self.request.headers[key] = value12121213 class _CookieCompatResponse:1214 """1215 Wraps a `Request` instance up in a compatability interface suitable1215 Wraps a `Request` instance up in a compatibility interface suitable1216 for use with `CookieJar` operations.1217 """12181219 def __init__(self, response: BaseResponse):
7 unmodified lines
modified:httpx/status_codes.py+1 added-1 removed
128 unmodified lines
129130131codes = StatusCode132133#  Include lower-case styles for `requests` compatability.133#  Include lower-case styles for `requests` compatibility.134for code in codes:135 setattr(codes, code._name_.lower(), int(code))
modified:tests/client/test_client.py+1 added-1 removed
6 unmodified lines
789def threadpool(func):10 """11 Our sync tests should run in seperate thread to the uvicorn server.11 Our sync tests should run in separate thread to the uvicorn server.12 """1314 @functools.wraps(func)15 async def wrapped(*args, **kwargs):
161 unmodified lines
modified:tests/dispatch/test_threaded.py+1 added-1 removed
100 unmodified lines
101102103def test_dispatch_class():104 """105 Use a syncronous 'Dispatcher' class directly.105 Use a synchronous 'Dispatcher' class directly.106 """107 url = "https://example.org/"108 with MockDispatch() as dispatcher:109 response = dispatcher.request("GET", url)
3 unmodified lines