[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
282f7ae54d
commit
effeb7a743
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue