We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bitproto -q -c
1 parent f10ca61 commit fc600e1Copy full SHA for fc600e1
compiler/bitproto/_main.py
@@ -137,6 +137,7 @@ def main(
137
fatal(str(error))
138
139
# Lint
140
+ lint_warnings = 0
141
if not disable_linter:
142
lint_warnings = lint(proto)
143
compiler/bitproto/utils.py
@@ -8,6 +8,7 @@
8
Any,
9
Callable,
10
List,
11
+ NoReturn,
12
Optional,
13
Type as T,
14
TypeVar,
@@ -292,7 +293,7 @@ def write_stderr(s: str) -> None:
292
293
sys.stderr.write(s + "\n")
294
295
-def fatal(s: str = "", code: int = 1) -> None:
296
+def fatal(s: str = "", code: int = 1) -> NoReturn:
297
"""Exit the whole program with given code and message."""
298
if s:
299
write_stderr(s)
0 commit comments