[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-07-29 22:00:04 +00:00
parent 282f7ae54d
commit effeb7a743
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class GitLsFile(NamedTuple):
filename: str filename: str
def git_ls_files(paths: Sequence[str]) -> Generator[GitLsFile, None, None]: def git_ls_files(paths: Sequence[str]) -> Generator[GitLsFile]:
outs = cmd_output('git', 'ls-files', '-z', '--stage', '--', *paths) outs = cmd_output('git', 'ls-files', '-z', '--stage', '--', *paths)
for out in zsplit(outs): for out in zsplit(outs):
metadata, filename = out.split('\t') metadata, filename = out.split('\t')

View File

@ -11,7 +11,7 @@ import ruamel.yaml
yaml = ruamel.yaml.YAML(typ='safe') yaml = ruamel.yaml.YAML(typ='safe')
def _exhaust(gen: Generator[str, None, None]) -> None: def _exhaust(gen: Generator[str]) -> None:
for _ in gen: for _ in gen:
pass pass