chore: Update Python dependencies

This commit is contained in:
sebthom
2024-03-02 23:15:21 +01:00
parent d473577d18
commit 703c4fee23
5 changed files with 106 additions and 110 deletions

View File

@@ -215,7 +215,7 @@ def load_dict_from_module(module:ModuleType, filename:str, content_label:str = "
if file_ext not in (".json", ".yaml", ".yml"):
raise ValueError(f'Unsupported file type. The file name "{filename}" must end with *.json, *.yaml, or *.yml')
content = get_resource_as_string(module, filename)
content = get_resource_as_string(module, filename) # pylint: disable=deprecated-method
return json.loads(content) if filename.endswith(".json") else YAML().load(content) # type: ignore[no-any-return] # mypy