Skip to content
Snippets Groups Projects
Commit d0d1c47d authored by Alán Muñoz's avatar Alán Muñoz
Browse files

style(abc): isort

parent 9ad58c46
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ from copy import copy
from pathlib import Path, PosixPath
from typing import Union
from yaml import dump, safe_load
from flatten_dict import flatten
from yaml import dump, safe_load
atomic = t.Union[int, float, str, bool]
......@@ -84,8 +84,9 @@ class ParametersABC(ABC):
try:
if Path(source).exists():
is_buffer = False
except Exception:
pass
except Exception as _:
assert isinstance(source, str), "Invalid source type."
if is_buffer:
params = safe_load(source)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment