Skip to content

Commit be0438a

Browse files
chore(package): lift anyio v4 restriction (#927)
1 parent e369566 commit be0438a

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies = [
1111
"httpx>=0.23.0, <1",
1212
"pydantic>=1.9.0, <3",
1313
"typing-extensions>=4.5, <5",
14-
"anyio>=3.5.0, <4",
14+
"anyio>=3.5.0, <5",
1515
"distro>=1.7.0, <2",
1616
"sniffio",
1717
"tqdm > 4"
@@ -51,7 +51,7 @@ dev-dependencies = [
5151
"pyright==1.1.332",
5252
"mypy==1.7.1",
5353
"black==23.3.0",
54-
"respx==0.19.2",
54+
"respx==0.20.2",
5555
"pytest==7.1.1",
5656
"pytest-asyncio==0.21.1",
5757
"ruff==0.0.282",

Diff for: requirements-dev.lock

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
-e file:.
1010
annotated-types==0.6.0
11-
anyio==3.7.1
11+
anyio==4.1.0
1212
argcomplete==3.1.2
1313
attrs==23.1.0
1414
azure-core==1.29.5
@@ -25,9 +25,9 @@ distlib==0.3.7
2525
distro==1.8.0
2626
exceptiongroup==1.1.3
2727
filelock==3.12.4
28-
h11==0.12.0
29-
httpcore==0.15.0
30-
httpx==0.23.0
28+
h11==0.14.0
29+
httpcore==1.0.2
30+
httpx==0.25.2
3131
idna==3.4
3232
iniconfig==2.0.0
3333
isort==5.10.1
@@ -56,8 +56,7 @@ pytest-asyncio==0.21.1
5656
python-dateutil==2.8.2
5757
pytz==2023.3.post1
5858
requests==2.31.0
59-
respx==0.19.2
60-
rfc3986==1.5.0
59+
respx==0.20.2
6160
ruff==0.0.282
6261
six==1.16.0
6362
sniffio==1.3.0

Diff for: requirements.lock

+6-7
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88

99
-e file:.
1010
annotated-types==0.6.0
11-
anyio==3.7.1
11+
anyio==4.1.0
1212
certifi==2023.7.22
1313
distro==1.8.0
1414
exceptiongroup==1.1.3
15-
h11==0.12.0
16-
httpcore==0.15.0
17-
httpx==0.23.0
15+
h11==0.14.0
16+
httpcore==1.0.2
17+
httpx==0.25.2
1818
idna==3.4
19-
numpy==1.26.1
20-
pandas==2.1.1
19+
numpy==1.26.2
20+
pandas==2.1.3
2121
pandas-stubs==2.1.1.230928
2222
pydantic==2.4.2
2323
pydantic-core==2.10.1
2424
python-dateutil==2.8.2
2525
pytz==2023.3.post1
26-
rfc3986==1.5.0
2726
six==1.16.0
2827
sniffio==1.3.0
2928
tqdm==4.66.1

Diff for: tests/test_client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import json
77
import asyncio
88
import inspect
9-
from typing import Any, Dict, Union, cast
9+
from typing import Any, Union, cast
1010
from unittest import mock
1111

1212
import httpx
@@ -357,7 +357,7 @@ def test_request_extra_query(self) -> None:
357357
),
358358
),
359359
)
360-
params = cast(Dict[str, str], dict(request.url.params))
360+
params = dict(request.url.params)
361361
assert params == {"my_query_param": "Foo"}
362362

363363
# if both `query` and `extra_query` are given, they are merged
@@ -371,7 +371,7 @@ def test_request_extra_query(self) -> None:
371371
),
372372
),
373373
)
374-
params = cast(Dict[str, str], dict(request.url.params))
374+
params = dict(request.url.params)
375375
assert params == {"bar": "1", "foo": "2"}
376376

377377
# `extra_query` takes priority over `query` when keys clash
@@ -385,7 +385,7 @@ def test_request_extra_query(self) -> None:
385385
),
386386
),
387387
)
388-
params = cast(Dict[str, str], dict(request.url.params))
388+
params = dict(request.url.params)
389389
assert params == {"foo": "2"}
390390

391391
@pytest.mark.respx(base_url=base_url)
@@ -1022,7 +1022,7 @@ def test_request_extra_query(self) -> None:
10221022
),
10231023
),
10241024
)
1025-
params = cast(Dict[str, str], dict(request.url.params))
1025+
params = dict(request.url.params)
10261026
assert params == {"my_query_param": "Foo"}
10271027

10281028
# if both `query` and `extra_query` are given, they are merged
@@ -1036,7 +1036,7 @@ def test_request_extra_query(self) -> None:
10361036
),
10371037
),
10381038
)
1039-
params = cast(Dict[str, str], dict(request.url.params))
1039+
params = dict(request.url.params)
10401040
assert params == {"bar": "1", "foo": "2"}
10411041

10421042
# `extra_query` takes priority over `query` when keys clash
@@ -1050,7 +1050,7 @@ def test_request_extra_query(self) -> None:
10501050
),
10511051
),
10521052
)
1053-
params = cast(Dict[str, str], dict(request.url.params))
1053+
params = dict(request.url.params)
10541054
assert params == {"foo": "2"}
10551055

10561056
@pytest.mark.respx(base_url=base_url)

0 commit comments

Comments
 (0)