Skip to content

Commit

Permalink
Update the return type annotation for OmegaConf.to_container (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 authored Apr 13, 2022
1 parent cd8bbcc commit 5c71703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omegaconf/omegaconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def to_container(
throw_on_missing: bool = False,
enum_to_str: bool = False,
structured_config_mode: SCMode = SCMode.DICT,
) -> Union[Dict[DictKeyType, Any], List[Any], None, str]:
) -> Union[Dict[DictKeyType, Any], List[Any], None, str, Any]:
"""
Resursively converts an OmegaConf config to a primitive container (dict or list).
:param cfg: the config to convert
Expand Down

0 comments on commit 5c71703

Please sign in to comment.