Skip to content

Commit b37373f

Browse files
committed
Specify parameters and output type
1 parent d024a19 commit b37373f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

silnlp/nmt/exp_summary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
key_word = ""
1919

2020

21-
def read_data(file_path, data, chapters):
21+
def read_data(file_path: str, data: dict, chapters: list) -> None:
2222
global chap_num
2323
global all_books
2424
global key_word
@@ -47,7 +47,7 @@ def read_data(file_path, data, chapters):
4747
print(folder_path + " has no diff_predictions file.")
4848

4949

50-
def extract_data(filename, header_row=5) -> dict:
50+
def extract_data(filename: str, header_row=5) -> dict:
5151
global chap_num
5252
global metrics
5353
global target_book
@@ -85,7 +85,7 @@ def extract_data(filename, header_row=5) -> dict:
8585
return result
8686

8787

88-
def flatten_dict(data, chapters, baseline={}) -> list:
88+
def flatten_dict(data: dict, chapters: list, baseline={}) -> list:
8989
global chap_num
9090
global metrics
9191

@@ -109,7 +109,7 @@ def flatten_dict(data, chapters, baseline={}) -> list:
109109
return rows
110110

111111

112-
def create_xlsx(rows, chapters, output_path):
112+
def create_xlsx(rows: list, chapters: list, output_path: str) -> None:
113113
global chap_num
114114
global metrics
115115

0 commit comments

Comments
 (0)