Skip to content

Commit 061c438

Browse files
authored
Merge pull request #631 from ahsiungsg/more_accurate_type_hints
more accurate type hints
2 parents e7bb366 + 8a7f509 commit 061c438

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+2-2
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

+1-1
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)