| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,7 +72,7 @@ def install_environment( | |||
| 72 | 72 | ||
| 73 | 73 | ||
| 74 | 74 | def run_hook( | |
| 75 | - hook: 'Hook', | ||
| 75 | + hook: Hook, | ||
| 76 | 76 | file_args: Sequence[str], | |
| 77 | 77 | color: bool, | |
| 78 | 78 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,7 +97,7 @@ def docker_cmd() -> Tuple[str, ...]: # pragma: windows no cover | |||
| 97 | 97 | ||
| 98 | 98 | ||
| 99 | 99 | def run_hook( | |
| 100 | - hook: 'Hook', | ||
| 100 | + hook: Hook, | ||
| 101 | 101 | file_args: Sequence[str], | |
| 102 | 102 | color: bool, | |
| 103 | 103 | ) -> Tuple[int, bytes]: # pragma: windows no cover | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | 15 | def run_hook( | |
| 16 | - hook: 'Hook', | ||
| 16 | + hook: Hook, | ||
| 17 | 17 | file_args: Sequence[str], | |
| 18 | 18 | color: bool, | |
| 19 | 19 | ) -> Tuple[int, bytes]: # pragma: windows no cover | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | 13 | def run_hook( | |
| 14 | - hook: 'Hook', | ||
| 14 | + hook: Hook, | ||
| 15 | 15 | file_args: Sequence[str], | |
| 16 | 16 | color: bool, | |
| 17 | 17 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ def install_environment( | |||
| 89 | 89 | ||
| 90 | 90 | ||
| 91 | 91 | def run_hook( | |
| 92 | - hook: 'Hook', | ||
| 92 | + hook: Hook, | ||
| 93 | 93 | file_args: Sequence[str], | |
| 94 | 94 | color: bool, | |
| 95 | 95 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,7 +72,7 @@ def no_install( | |||
| 72 | 72 | raise AssertionError('This type is not installable') | |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | - def target_concurrency(hook: 'Hook') -> int: | ||
| 75 | + def target_concurrency(hook: Hook) -> int: | ||
| 76 | 76 | if hook.require_serial or 'PRE_COMMIT_NO_CONCURRENCY' in os.environ: | |
| 77 | 77 | return 1 | |
| 78 | 78 | else: | |
@@ -97,7 +97,7 @@ def _shuffled(seq: Sequence[str]) -> List[str]: | |||
| 97 | 97 | ||
| 98 | 98 | ||
| 99 | 99 | def run_xargs( | |
| 100 | - hook: 'Hook', | ||
| 100 | + hook: Hook, | ||
| 101 | 101 | cmd: Tuple[str, ...], | |
| 102 | 102 | file_args: Sequence[str], | |
| 103 | 103 | **kwargs: Any, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,7 +85,7 @@ def install_environment( | |||
| 85 | 85 | ||
| 86 | 86 | ||
| 87 | 87 | def run_hook( | |
| 88 | - hook: 'Hook', | ||
| 88 | + hook: Hook, | ||
| 89 | 89 | file_args: Sequence[str], | |
| 90 | 90 | color: bool, | |
| 91 | 91 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ def install_environment( | |||
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | 61 | def run_hook( | |
| 62 | - hook: 'Hook', | ||
| 62 | + hook: Hook, | ||
| 63 | 63 | file_args: Sequence[str], | |
| 64 | 64 | color: bool, | |
| 65 | 65 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ def _process_filename_at_once(pattern: Pattern[bytes], filename: str) -> int: | |||
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | 48 | def run_hook( | |
| 49 | - hook: 'Hook', | ||
| 49 | + hook: Hook, | ||
| 50 | 50 | file_args: Sequence[str], | |
| 51 | 51 | color: bool, | |
| 52 | 52 | ) -> Tuple[int, bytes]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -145,7 +145,7 @@ def py_interface( | |||
| 145 | 145 | ) -> Tuple[ | |
| 146 | 146 | Callable[[Prefix, str], ContextManager[None]], | |
| 147 | 147 | Callable[[Prefix, str], bool], | |
| 148 | - Callable[['Hook', Sequence[str], bool], Tuple[int, bytes]], | ||
| 148 | + Callable[[Hook, Sequence[str], bool], Tuple[int, bytes]], | ||
| 149 | 149 | Callable[[Prefix, str, Sequence[str]], None], | |
| 150 | 150 | ]: | |
| 151 | 151 | @contextlib.contextmanager | |
@@ -168,7 +168,7 @@ def healthy(prefix: Prefix, language_version: str) -> bool: | |||
| 168 | 168 | return retcode == 0 | |
| 169 | 169 | ||
| 170 | 170 | def run_hook( | |
| 171 | - hook: 'Hook', | ||
| 171 | + hook: Hook, | ||
| 172 | 172 | file_args: Sequence[str], | |
| 173 | 173 | color: bool, | |
| 174 | 174 | ) -> Tuple[int, bytes]: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments