From 8879c777da8d4d1cc5de7e5d7ffcabd442e61591 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 4 Dec 2023 05:27:29 -0500 Subject: [PATCH] chore(package): lift anyio v4 restriction (#85) --- pyproject.toml | 4 ++-- requirements-dev.lock | 19 +++++++++---------- requirements.lock | 15 +++++++-------- tests/test_client.py | 14 +++++++------- 4 files changed, 25 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 063a85b..655fd65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ dependencies = [ "httpx>=0.23.0, <1", "pydantic>=1.9.0, <3", "typing-extensions>=4.5, <5", - "anyio>=3.5.0, <4", + "anyio>=3.5.0, <5", "distro>=1.7.0, <2", "sniffio", "tokenizers >= 0.13.0", @@ -51,7 +51,7 @@ dev-dependencies = [ "pyright==1.1.332", "mypy==1.7.1", "black==23.3.0", - "respx==0.19.2", + "respx==0.20.2", "pytest==7.1.1", "pytest-asyncio==0.21.1", "ruff==0.0.282", diff --git a/requirements-dev.lock b/requirements-dev.lock index d06c2ac..42c48c3 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -8,14 +8,14 @@ -e file:. annotated-types==0.6.0 -anyio==3.7.1 +anyio==4.1.0 argcomplete==3.1.2 attrs==23.1.0 black==23.3.0 boto3==1.28.58 boto3-stubs==1.28.41 botocore==1.31.58 -botocore-stubs==1.33.1 +botocore-stubs==1.33.6.post1 certifi==2023.7.22 charset-normalizer==3.3.2 click==8.1.7 @@ -25,10 +25,10 @@ distlib==0.3.7 distro==1.8.0 exceptiongroup==1.1.3 filelock==3.12.4 -fsspec==2023.10.0 -h11==0.12.0 -httpcore==0.15.0 -httpx==0.23.0 +fsspec==2023.12.0 +h11==0.14.0 +httpcore==1.0.2 +httpx==0.25.2 huggingface-hub==0.16.4 idna==3.4 iniconfig==2.0.0 @@ -52,8 +52,7 @@ python-dateutil==2.8.2 pytz==2023.3.post1 pyyaml==6.0.1 requests==2.31.0 -respx==0.19.2 -rfc3986==1.5.0 +respx==0.20.2 ruff==0.0.282 s3transfer==0.7.0 six==1.16.0 @@ -62,8 +61,8 @@ time-machine==2.9.0 tokenizers==0.14.0 tomli==2.0.1 tqdm==4.66.1 -types-awscrt==0.19.17 -types-s3transfer==0.7.0 +types-awscrt==0.19.19 +types-s3transfer==0.8.2 typing-extensions==4.8.0 urllib3==1.26.18 virtualenv==20.24.5 diff --git a/requirements.lock b/requirements.lock index bf32205..76409d0 100644 --- a/requirements.lock +++ b/requirements.lock @@ -8,18 +8,18 @@ -e file:. annotated-types==0.6.0 -anyio==3.7.1 +anyio==4.1.0 boto3==1.28.58 botocore==1.31.58 certifi==2023.7.22 -charset-normalizer==3.3.0 +charset-normalizer==3.3.2 distro==1.8.0 exceptiongroup==1.1.3 -filelock==3.12.4 -fsspec==2023.9.2 -h11==0.12.0 -httpcore==0.15.0 -httpx==0.23.0 +filelock==3.13.1 +fsspec==2023.12.0 +h11==0.14.0 +httpcore==1.0.2 +httpx==0.25.2 huggingface-hub==0.16.4 idna==3.4 jmespath==1.0.1 @@ -29,7 +29,6 @@ pydantic-core==2.10.1 python-dateutil==2.8.2 pyyaml==6.0.1 requests==2.31.0 -rfc3986==1.5.0 s3transfer==0.7.0 six==1.16.0 sniffio==1.3.0 diff --git a/tests/test_client.py b/tests/test_client.py index b7b2d08..0a6d538 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -6,7 +6,7 @@ import json import asyncio import inspect -from typing import Any, Dict, Union, cast +from typing import Any, Union, cast from unittest import mock import httpx @@ -412,7 +412,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"my_query_param": "Foo"} # if both `query` and `extra_query` are given, they are merged @@ -426,7 +426,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"bar": "1", "foo": "2"} # `extra_query` takes priority over `query` when keys clash @@ -440,7 +440,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"foo": "2"} @pytest.mark.respx(base_url=base_url) @@ -1185,7 +1185,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"my_query_param": "Foo"} # if both `query` and `extra_query` are given, they are merged @@ -1199,7 +1199,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"bar": "1", "foo": "2"} # `extra_query` takes priority over `query` when keys clash @@ -1213,7 +1213,7 @@ def test_request_extra_query(self) -> None: ), ), ) - params = cast(Dict[str, str], dict(request.url.params)) + params = dict(request.url.params) assert params == {"foo": "2"} @pytest.mark.respx(base_url=base_url)