Loader should be passed as kwarg for clarity

This commit is contained in:
Matthias 2024-04-26 08:36:10 +02:00
parent 33454e2f23
commit 9bc866e6b2

View File

@ -21,7 +21,7 @@ type_reqs = [r.strip('\n') for r in requirements if r.startswith(
'types-') or r.startswith('SQLAlchemy')] 'types-') or r.startswith('SQLAlchemy')]
with pre_commit_file.open('r') as file: 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'] mypy_repo = [repo for repo in f['repos'] if repo['repo']