From 7e0b29f807c47a8c160c9ef267803984db5bf10c Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Tue, 11 Feb 2025 20:27:02 -0800 Subject: [PATCH] ignore mypy recursivedict error --- tests/utils/test_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils/test_config.py b/tests/utils/test_config.py index 91aaf1b3b1..89247d8fca 100644 --- a/tests/utils/test_config.py +++ b/tests/utils/test_config.py @@ -146,6 +146,7 @@ def test_config_lookup_order( """ Test that the configuration lookup prioritizes PYICEBERG_HOME, then home (~), then cwd. """ + def create_config_file(path: str, uri: Optional[str]) -> None: if uri: config_file_path = os.path.join(path, ".pyiceberg.yaml") @@ -172,5 +173,5 @@ def create_config_file(path: str, uri: Optional[str]) -> None: # Perform the lookup and validate the result result = Config()._from_configuration_files() assert ( - result["catalog"]["default"]["uri"] if result else None + result["catalog"]["default"]["uri"] if result else None # type: ignore ) == expected_result, f"Unexpected configuration result. Expected: {expected_result}, Actual: {result}"