Merge pull request #1318 from pre-commit/unnecessary_quoted_annotation

Remove unnecessary forward annotations
This commit is contained in:
Anthony Sottile 2020-02-07 08:54:40 -08:00 committed by GitHub
commit 659086f22f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 17 additions and 17 deletions

View file

@ -72,7 +72,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -97,7 +97,7 @@ def docker_cmd() -> Tuple[str, ...]: # pragma: windows no cover
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]: # pragma: windows no cover

View file

@ -13,7 +13,7 @@ install_environment = helpers.no_install
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]: # pragma: windows no cover

View file

@ -11,7 +11,7 @@ install_environment = helpers.no_install
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -89,7 +89,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -72,7 +72,7 @@ def no_install(
raise AssertionError('This type is not installable')
def target_concurrency(hook: 'Hook') -> int:
def target_concurrency(hook: Hook) -> int:
if hook.require_serial or 'PRE_COMMIT_NO_CONCURRENCY' in os.environ:
return 1
else:
@ -97,7 +97,7 @@ def _shuffled(seq: Sequence[str]) -> List[str]:
def run_xargs(
hook: 'Hook',
hook: Hook,
cmd: Tuple[str, ...],
file_args: Sequence[str],
**kwargs: Any,

View file

@ -85,7 +85,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -59,7 +59,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -46,7 +46,7 @@ def _process_filename_at_once(pattern: Pattern[bytes], filename: str) -> int:
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -145,7 +145,7 @@ def py_interface(
) -> Tuple[
Callable[[Prefix, str], ContextManager[None]],
Callable[[Prefix, str], bool],
Callable[['Hook', Sequence[str], bool], Tuple[int, bytes]],
Callable[[Hook, Sequence[str], bool], Tuple[int, bytes]],
Callable[[Prefix, str, Sequence[str]], None],
]:
@contextlib.contextmanager
@ -168,7 +168,7 @@ def py_interface(
return retcode == 0
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -118,7 +118,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]: # pragma: windows no cover

View file

@ -98,7 +98,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -11,7 +11,7 @@ install_environment = helpers.no_install
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]:

View file

@ -56,7 +56,7 @@ def install_environment(
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]: # pragma: windows no cover

View file

@ -12,7 +12,7 @@ install_environment = helpers.no_install
def run_hook(
hook: 'Hook',
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> Tuple[int, bytes]: