Revert "mypy: read_yaml argument should always be a string"

This reverts commit 4db4338812.
This commit is contained in:
Alexandre Aubin 2021-09-17 17:10:07 +02:00
parent 4db4338812
commit d135b97784

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.name), **self.args}
self.args = {**read_yaml(args_file), **self.args}
if value is not None:
self.args = {self.filter_key.split(".")[-1]: value}