diff --git a/pyproject.toml b/pyproject.toml index 0c30870..0052f1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,14 +19,14 @@ classifiers = [ ] version = "0" dependencies = [ - "typer>=0.13", + "typer>=0.26", # The first release whose pydantic-core ships a wheel for each interpreter. "pydantic>=2; python_version < '3.12'", "pydantic>=2.0.2; python_version == '3.12'", "pydantic>=2.8.2; python_version == '3.13'", "pydantic>=2.12; python_version >= '3.14'", "pydantic-settings>=2", - "modern-di-typer>=3,<4", + "modern-di-typer>=4,<5", "httpx2>=2", "httpware[pydantic]>=0.15.0", ] diff --git a/tests/test_units.py b/tests/test_units.py index e2a4e00..afb9930 100644 --- a/tests/test_units.py +++ b/tests/test_units.py @@ -152,8 +152,7 @@ def test_container_builds_a_real_client_from_settings() -> None: gitlab=GitLabConfig(endpoint="https://gitlab.test", token=pydantic.SecretStr("t")) ) - with ioc.container: - ioc.container.override(ioc.SettingsGroup.settings, settings) + with ioc.container, ioc.container.override(ioc.SettingsGroup.settings, settings): api: typing.Final = ioc.container.resolve(GitLabApi) assert isinstance(api.http, httpware.Client)