Skip to content

Commit 5914737

Browse files
authored
fix: add missing type annotations (#352)
1 parent 49fef7f commit 5914737

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

singleheader/amalgamate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
current_implementation=''
4444

45-
def doinclude(fid, file, line, origin):
45+
def doinclude(fid: str, file: str, line: str, origin: str) -> None:
4646

4747
p = os.path.join(AMALGAMATE_INCLUDE_PATH, file)
4848
pi = os.path.join(AMALGAMATE_SOURCE_PATH, file)
@@ -64,7 +64,7 @@ def doinclude(fid, file, line, origin):
6464
print("unrecognized:", file, " from ", line, " in ", origin)
6565
print(line, file=fid)
6666

67-
def dofile(fid, prepath, filename):
67+
def dofile(fid: str, prepath: str, filename: str) -> None:
6868
file = os.path.join(prepath, filename)
6969
RELFILE = os.path.relpath(file, PROJECTPATH)
7070
# Last lines are always ignored. Files should end by an empty lines.

tools/lint_and_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def clang_format(file_path: str) -> None:
7575
sys.exit(1)
7676

7777

78-
def clang_format_verify():
78+
def clang_format_verify() -> str:
7979
version_output = subprocess.check_output(
8080
["clang-format", "--version"], stderr=subprocess.STDOUT,
8181
).decode("utf-8").split(" ")

0 commit comments

Comments
 (0)