Skip to content

Commit b55d463

Browse files
authored
Upgrade Python type checker mypy (#3654)
1 parent 15e9759 commit b55d463

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ twine==6.0.1
2020
# Tests & Linting
2121
coverage[toml]==7.6.1
2222
cryptography==44.0.1
23-
mypy==1.13.0
23+
mypy==1.17.1
2424
pytest==8.3.4
2525
ruff==0.12.11
2626
trio==0.27.0

tests/client/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ async def test_auth_property() -> None:
326326
async with httpx.AsyncClient(transport=httpx.MockTransport(app)) as client:
327327
assert client.auth is None
328328

329-
client.auth = ("user", "password123") # type: ignore
329+
client.auth = ("user", "password123")
330330
assert isinstance(client.auth, httpx.BasicAuth)
331331

332332
url = "https://example.org/"

tests/client/test_properties.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33

44
def test_client_base_url():
55
client = httpx.Client()
6-
client.base_url = "https://www.example.org/" # type: ignore
6+
client.base_url = "https://www.example.org/"
77
assert isinstance(client.base_url, httpx.URL)
88
assert client.base_url == "https://www.example.org/"
99

1010

1111
def test_client_base_url_without_trailing_slash():
1212
client = httpx.Client()
13-
client.base_url = "https://www.example.org/path" # type: ignore
13+
client.base_url = "https://www.example.org/path"
1414
assert isinstance(client.base_url, httpx.URL)
1515
assert client.base_url == "https://www.example.org/path/"
1616

1717

1818
def test_client_base_url_with_trailing_slash():
1919
client = httpx.Client()
20-
client.base_url = "https://www.example.org/path/" # type: ignore
20+
client.base_url = "https://www.example.org/path/"
2121
assert isinstance(client.base_url, httpx.URL)
2222
assert client.base_url == "https://www.example.org/path/"
2323

2424

2525
def test_client_headers():
2626
client = httpx.Client()
27-
client.headers = {"a": "b"} # type: ignore
27+
client.headers = {"a": "b"}
2828
assert isinstance(client.headers, httpx.Headers)
2929
assert client.headers["A"] == "b"
3030

3131

3232
def test_client_cookies():
3333
client = httpx.Client()
34-
client.cookies = {"a": "b"} # type: ignore
34+
client.cookies = {"a": "b"}
3535
assert isinstance(client.cookies, httpx.Cookies)
3636
mycookies = list(client.cookies.jar)
3737
assert len(mycookies) == 1
@@ -42,7 +42,7 @@ def test_client_timeout():
4242
expected_timeout = 12.0
4343
client = httpx.Client()
4444

45-
client.timeout = expected_timeout # type: ignore
45+
client.timeout = expected_timeout
4646

4747
assert isinstance(client.timeout, httpx.Timeout)
4848
assert client.timeout.connect == expected_timeout

tests/client/test_queryparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_client_queryparams_string():
1717
assert client.params["a"] == "b"
1818

1919
client = httpx.Client()
20-
client.params = "a=b" # type: ignore
20+
client.params = "a=b"
2121
assert isinstance(client.params, httpx.QueryParams)
2222
assert client.params["a"] == "b"
2323

0 commit comments

Comments
 (0)