def test_marker_string_representation() -> None: marker = Marker("marker") assert repr(marker) == "marker"
from typing import Any, List from omegaconf import AnyNode, Container, DictConfig, ListConfig from omegaconf._utils import Marker from omegaconf.basecontainer import BaseContainer from omegaconf.errors import ConfigKeyError _DEFAULT_SELECT_MARKER_: Any = Marker("_DEFAULT_SELECT_MARKER_") def keys( key: str, _parent_: Container, ) -> ListConfig: from omegaconf import OmegaConf assert isinstance(_parent_, BaseContainer) in_dict = _get_and_validate_dict_input(key, parent=_parent_, resolver_name="oc.dict.keys") ret = OmegaConf.create(list(in_dict.keys()), parent=_parent_) assert isinstance(ret, ListConfig) return ret def values(key: str, _root_: BaseContainer, _parent_: Container) -> ListConfig: assert isinstance(_parent_, BaseContainer) in_dict = _get_and_validate_dict_input(key, parent=_parent_,