fix: CI is blocked by mypy checking (#17213)

This commit is contained in:
Yongjie Zhao 2021-10-25 04:16:47 +01:00 committed by GitHub
parent b5246b29df
commit 31085e34ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def load_configs_from_directory(
# removing "type" from the metadata allows us to import any exported model
# from the unzipped directory directly
metadata = yaml.load(contents.get(METADATA_FILE_NAME, "{}"))
metadata = yaml.load(contents.get(METADATA_FILE_NAME, "{}"), Loader=None)
if "type" in metadata:
del metadata["type"]
contents[METADATA_FILE_NAME] = yaml.dump(metadata)