Satisfy typechecker
This commit is contained in:
parent
2abaddede8
commit
6d0a52b78f
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
import os
|
import os
|
||||||
|
from pathlib import Path
|
||||||
from typing import Iterator
|
from typing import Iterator
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
@ -11,10 +12,10 @@ import toml
|
||||||
from clickusagelib.githook import install_hook, uninstall_hook
|
from clickusagelib.githook import install_hook, uninstall_hook
|
||||||
|
|
||||||
|
|
||||||
def find_git_root(path) -> str:
|
def find_git_root(path) -> Path:
|
||||||
git_repo = git.Repo(path, search_parent_directories=True)
|
git_repo = git.Repo(path, search_parent_directories=True)
|
||||||
git_root = git_repo.git.rev_parse("--show-toplevel")
|
git_root = git_repo.git.rev_parse("--show-toplevel")
|
||||||
return git_root
|
return Path(git_root)
|
||||||
|
|
||||||
|
|
||||||
def iter_commands(
|
def iter_commands(
|
||||||
|
|
Loading…
Reference in New Issue