Skip to content

Commit 97ad599

Browse files
committed
fix: Update mypy to a version that supports recent Pythons
1 parent 48ba86c commit 97ad599

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pytest-asyncio = "^0.18.3"
3636
pandas = ">=1.0,<3"
3737
black = "22.6.0"
3838
isort = "^5.9"
39-
mypy = "0.982"
39+
mypy = "1.19"
4040
types-setuptools = "^57.4"
4141
# documentation
4242
# NOTE: when changing these, update docs-requirements.txt

stan/fit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def __init__(
9696
)
9797

9898
draw_row = tuple(msg["values"].values()) # a "row" of values from a single draw from Stan C++
99+
draw_row = cast(Tuple[float, ...], draw_row)
99100
self._draws[:, draw_index, chain_index] = draw_row
100101
draw_index += 1
101102
finally:

0 commit comments

Comments
 (0)