better mypy coverage

This commit is contained in:
Manuel Barkhau 2019-03-29 21:25:38 +01:00
parent a9e662d245
commit 44d2dceaf8
3 changed files with 21 additions and 13 deletions

View file

@ -190,7 +190,7 @@ def init(verbose: int = 0, dry: bool = False) -> None:
config.write_content(ctx)
def _assert_not_dirty(_vcs: vcs.VCS, filepaths: typ.Set[str], allow_dirty: bool):
def _assert_not_dirty(_vcs: vcs.VCS, filepaths: typ.Set[str], allow_dirty: bool) -> None:
dirty_files = _vcs.status(required_files=filepaths)
if dirty_files: