From 9bc866e6b21f9cec8c6c8a97b8e915cf953b8c67 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 26 Apr 2024 08:36:10 +0200 Subject: [PATCH] Loader should be passed as kwarg for clarity --- 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 a59354933..91327ec9a 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, yaml.SafeLoader) + f = yaml.load(file, Loader=yaml.SafeLoader) mypy_repo = [repo for repo in f['repos'] if repo['repo']