Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more accurate type hints #631

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ repos:
- id: isort
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black
rev: 21.6b0
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
rev: v0.982
hooks:
- id: mypy
# Copied from setup.cfg
Expand Down
2 changes: 1 addition & 1 deletion cmdstanpy/stanfit/mle.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def optimized_iterations_pd(self) -> Optional[pd.DataFrame]:
return pd.DataFrame(self._all_iters, columns=self.column_names)

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