mypy: read_yaml argument should always be a string

This commit is contained in:
Alexandre Aubin 2021-09-17 16:57:51 +02:00
parent c53a6006ce
commit 4db4338812

View file

@ -126,7 +126,7 @@ class ConfigPanel:
if args_file:
# Import YAML / JSON file but keep --args values
self.args = {**read_yaml(args_file), **self.args}
self.args = {**read_yaml(args_file.name), **self.args}
if value is not None:
self.args = {self.filter_key.split(".")[-1]: value}