Skip to content

Commit 31ab0ea

Browse files
type hint data_dict in load_yaml
1 parent e54abd1 commit 31ab0ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/layered_config_tree/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ def load_yaml(data: str | Path) -> dict[str, Any]:
698698
text which is loaded directly into a dictionary.
699699
"""
700700

701+
data_dict: dict[str, Any]
701702
if (isinstance(data, str) and data.endswith((".yaml", ".yml"))) or isinstance(data, Path):
702703
# 'data' is a filepath to a yaml file
703704
with open(data) as f:

0 commit comments

Comments
 (0)