| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,7 @@ | |||
| 6 | 6 | import sys | |
| 7 | 7 | import traceback | |
| 8 | 8 | from typing import Generator | |
| 9 | + from typing import IO | ||
| 9 | 10 | ||
| 10 | 11 | import pre_commit.constants as C | |
| 11 | 12 | from pre_commit import output | |
@@ -32,7 +33,7 @@ def _log_and_exit( | |||
| 32 | 33 | with contextlib.ExitStack() as ctx: | |
| 33 | 34 | if os.access(storedir, os.W_OK): | |
| 34 | 35 | output.write_line(f'Check the log at {log_path}') | |
| 35 | - log = ctx.enter_context(open(log_path, 'wb')) | ||
| 36 | + log: IO[bytes] = ctx.enter_context(open(log_path, 'wb')) | ||
| 36 | 37 | else: # pragma: win32 no cover | |
| 37 | 38 | output.write_line(f'Failed to write to log at {log_path}') | |
| 38 | 39 | log = sys.stdout.buffer | |
| Back | FazBrowse Home | New Git URL |
0 commit comments