Skip to content

Commit 807c727

Browse files
committed
adds more missing typing
1 parent 369c6b1 commit 807c727

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/nhp/model/data/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_inequalities(self) -> pd.DataFrame:
112112
"""
113113
return self._get_parquet("inequalities")
114114

115-
def _get_parquet(self, file) -> pd.DataFrame:
115+
def _get_parquet(self, file: str) -> pd.DataFrame:
116116
"""Load specific parquet file using Pandas.
117117
118118
Args:

src/nhp/model/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _combine_model_results(
7676
}
7777

7878

79-
def _combine_step_counts(results: list):
79+
def _combine_step_counts(results: list) -> pd.DataFrame:
8080
"""Combine the step counts of the monte carlo runs.
8181
8282
Takes as input a list of lists, where the outer list contains an item for inpatients,

src/nhp/model/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _run_model(
4747
data: Callable[[int, str], Data],
4848
hsa: Any,
4949
run_params: dict,
50-
progress_callback,
50+
progress_callback: Callable[[Any], None],
5151
save_full_model_results: bool,
5252
) -> list[ModelRunResult]:
5353
"""Run the model iterations.

0 commit comments

Comments
 (0)