From 0bc84c6a0df2546568967e155928ccede4513ac9 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <23113631+pixeebot@users.noreply.github.com> Date: Tue, 14 Nov 2023 03:05:54 +0000 Subject: [PATCH] Use SafeLoader in `yaml.load()` Calls --- build_helpers/pre_commit_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_helpers/pre_commit_update.py b/build_helpers/pre_commit_update.py index e6b47d100..038b8500e 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']