Skip to content

Commit 8a7f509

Browse files
committed
more accurate type hints
1 parent e7bb366 commit 8a7f509

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ repos:
1212
- id: isort
1313
# https://github.com/python/black#version-control-integration
1414
- repo: https://github.com/psf/black
15-
rev: 21.6b0
15+
rev: 22.10.0
1616
hooks:
1717
- id: black
1818
- repo: https://github.com/pycqa/flake8
1919
rev: 3.9.2
2020
hooks:
2121
- id: flake8
2222
- repo: https://github.com/pre-commit/mirrors-mypy
23-
rev: v0.910
23+
rev: v0.982
2424
hooks:
2525
- id: mypy
2626
# Copied from setup.cfg

cmdstanpy/stanfit/mle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def optimized_iterations_pd(self) -> Optional[pd.DataFrame]:
152152
return pd.DataFrame(self._all_iters, columns=self.column_names)
153153

154154
@property
155-
def optimized_params_dict(self) -> Dict[str, float]:
155+
def optimized_params_dict(self) -> Dict[str, np.float64]:
156156
"""
157157
Returns all estimates from the optimizer, including `lp__` as a
158158
Python Dict. Only returns estimate from final iteration.

0 commit comments

Comments
 (0)