Skip to content

Commit fcb73a8

Browse files
committed
fix mypy
1 parent 5297c64 commit fcb73a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmdstanpy/stanfit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ def stan_variable(
14421442

14431443
def stan_variables(
14441444
self, inc_iterations: bool = False
1445-
) -> Dict[str, np.ndarray]:
1445+
) -> Dict[str, Union[np.ndarray, float]]:
14461446
"""
14471447
Return a dictionary mapping Stan program variables names
14481448
to the corresponding numpy.ndarray containing the inferred values.
@@ -2178,7 +2178,7 @@ def stan_variable(
21782178
assert isinstance(result, (np.ndarray, float))
21792179
return result
21802180

2181-
def stan_variables(self) -> Dict[str, np.ndarray]:
2181+
def stan_variables(self) -> Dict[str, Union[np.ndarray, float]]:
21822182
"""
21832183
Return a dictionary mapping Stan program variables names
21842184
to the corresponding numpy.ndarray containing the inferred values.

0 commit comments

Comments
 (0)