From bb0547e2605503c0469f0523fd2708f24e24c28c Mon Sep 17 00:00:00 2001 From: Pablo Orgaz Date: Fri, 27 Oct 2023 19:09:17 +0200 Subject: [PATCH] chore: formatting --- private_gpt/settings/yaml.py | 2 +- tests/settings/test_settings_loader.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/private_gpt/settings/yaml.py b/private_gpt/settings/yaml.py index 9fc357a1..a129ca49 100644 --- a/private_gpt/settings/yaml.py +++ b/private_gpt/settings/yaml.py @@ -10,7 +10,7 @@ _env_replace_matcher = re.compile(r"\$\{(\w|_)+:?.*}") @typing.no_type_check # pyaml does not have good hints, everything is Any def load_yaml_with_envvars( - stream: TextIO, environ: dict[str, Any] = os.environ + stream: TextIO, environ: dict[str, Any] = os.environ ) -> dict[str, Any]: """Load yaml file with environment variable expansion. diff --git a/tests/settings/test_settings_loader.py b/tests/settings/test_settings_loader.py index 8f4a6cf6..8183c4e6 100644 --- a/tests/settings/test_settings_loader.py +++ b/tests/settings/test_settings_loader.py @@ -32,7 +32,6 @@ def test_environment_defaults_variables_are_loaded_with_duplicated_delimiters() assert loaded["replaced"] == ":duped::" - def test_environment_without_defaults_fails() -> None: sample_yaml = """ replaced: ${TEST_REPLACE_ME}