Skip to content

Commit fa8d022

Browse files
committed
Remove unnecessary forward annotations
1 parent 78f406a commit fa8d022

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

pre_commit/languages/conda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def install_environment(
7272

7373

7474
def run_hook(
75-
hook: 'Hook',
75+
hook: Hook,
7676
file_args: Sequence[str],
7777
color: bool,
7878
) -> Tuple[int, bytes]:

pre_commit/languages/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def docker_cmd() -> Tuple[str, ...]: # pragma: windows no cover
9797

9898

9999
def run_hook(
100-
hook: 'Hook',
100+
hook: Hook,
101101
file_args: Sequence[str],
102102
color: bool,
103103
) -> Tuple[int, bytes]: # pragma: windows no cover

pre_commit/languages/docker_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
def run_hook(
16-
hook: 'Hook',
16+
hook: Hook,
1717
file_args: Sequence[str],
1818
color: bool,
1919
) -> Tuple[int, bytes]: # pragma: windows no cover

pre_commit/languages/fail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def run_hook(
14-
hook: 'Hook',
14+
hook: Hook,
1515
file_args: Sequence[str],
1616
color: bool,
1717
) -> Tuple[int, bytes]:

pre_commit/languages/golang.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def install_environment(
8989

9090

9191
def run_hook(
92-
hook: 'Hook',
92+
hook: Hook,
9393
file_args: Sequence[str],
9494
color: bool,
9595
) -> Tuple[int, bytes]:

pre_commit/languages/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def no_install(
7272
raise AssertionError('This type is not installable')
7373

7474

75-
def target_concurrency(hook: 'Hook') -> int:
75+
def target_concurrency(hook: Hook) -> int:
7676
if hook.require_serial or 'PRE_COMMIT_NO_CONCURRENCY' in os.environ:
7777
return 1
7878
else:
@@ -97,7 +97,7 @@ def _shuffled(seq: Sequence[str]) -> List[str]:
9797

9898

9999
def run_xargs(
100-
hook: 'Hook',
100+
hook: Hook,
101101
cmd: Tuple[str, ...],
102102
file_args: Sequence[str],
103103
**kwargs: Any,

pre_commit/languages/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def install_environment(
8585

8686

8787
def run_hook(
88-
hook: 'Hook',
88+
hook: Hook,
8989
file_args: Sequence[str],
9090
color: bool,
9191
) -> Tuple[int, bytes]:

pre_commit/languages/perl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def install_environment(
5959

6060

6161
def run_hook(
62-
hook: 'Hook',
62+
hook: Hook,
6363
file_args: Sequence[str],
6464
color: bool,
6565
) -> Tuple[int, bytes]:

pre_commit/languages/pygrep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _process_filename_at_once(pattern: Pattern[bytes], filename: str) -> int:
4646

4747

4848
def run_hook(
49-
hook: 'Hook',
49+
hook: Hook,
5050
file_args: Sequence[str],
5151
color: bool,
5252
) -> Tuple[int, bytes]:

pre_commit/languages/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def py_interface(
145145
) -> Tuple[
146146
Callable[[Prefix, str], ContextManager[None]],
147147
Callable[[Prefix, str], bool],
148-
Callable[['Hook', Sequence[str], bool], Tuple[int, bytes]],
148+
Callable[[Hook, Sequence[str], bool], Tuple[int, bytes]],
149149
Callable[[Prefix, str, Sequence[str]], None],
150150
]:
151151
@contextlib.contextmanager
@@ -168,7 +168,7 @@ def healthy(prefix: Prefix, language_version: str) -> bool:
168168
return retcode == 0
169169

170170
def run_hook(
171-
hook: 'Hook',
171+
hook: Hook,
172172
file_args: Sequence[str],
173173
color: bool,
174174
) -> Tuple[int, bytes]:

0 commit comments

Comments
 (0)