diff --git a/hydromt/cli/_utils.py b/hydromt/cli/_utils.py index 4b3dc05b1..bca77c95f 100644 --- a/hydromt/cli/_utils.py +++ b/hydromt/cli/_utils.py @@ -9,7 +9,6 @@ from typing import Any, Dict, Optional, Union import click -import yaml from hydromt._typing.error import DeprecatedError from hydromt.io import configread @@ -105,12 +104,3 @@ def parse_config( for option, value in opt_cli[section].items(): opt[section].update({option: value}) return opt - - -def parse_export_config_yaml(ctx, param, value) -> Dict[str, Any]: - if value: - with open(value, "r") as stream: - yml = yaml.load(stream, Loader=yaml.FullLoader) - return yml - else: - return {} diff --git a/tests/components/test_kernel_config_component.py b/tests/components/test_kernel_config_component.py index 2fbc2a527..a61ef2c29 100644 --- a/tests/components/test_kernel_config_component.py +++ b/tests/components/test_kernel_config_component.py @@ -19,7 +19,6 @@ def test_config_dict(): return { "section1": { "list": [1, 2, 3], - # "tuple": (1, "b"), # yaml cannot deal with tuple "bool": True, "str": "test", "int": 1,