Skip to content

Commit a3ec9a5

Browse files
committed
Fix mypy failure
1 parent 55e8fe9 commit a3ec9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def determine_coords(
234234
for dim in dims:
235235
dim_name = dim
236236
# str is applied because dim entries may be None
237-
coords[str(dim_name)] = value[dim].to_numpy()
237+
coords[str(dim_name)] = cast(xr.DataArray, value[dim]).to_numpy()
238238

239239
if isinstance(value, np.ndarray) and dims is not None:
240240
if len(dims) != value.ndim:

0 commit comments

Comments
 (0)