diff --git a/build_helpers/pre_commit_update.py b/build_helpers/pre_commit_update.py index 7774523d2..a59354933 100644 --- a/build_helpers/pre_commit_update.py +++ b/build_helpers/pre_commit_update.py @@ -21,7 +21,7 @@ type_reqs = [r.strip('\n') for r in requirements if r.startswith( 'types-') or r.startswith('SQLAlchemy')] with pre_commit_file.open('r') as file: - f = yaml.load(file, Loader=yaml.FullLoader) + f = yaml.load(file, yaml.SafeLoader) mypy_repo = [repo for repo in f['repos'] if repo['repo']