Skip to content

Commit

Permalink
Fix mypy failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Oct 2, 2023
1 parent 55e8fe9 commit a3ec9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def determine_coords(
for dim in dims:
dim_name = dim
# str is applied because dim entries may be None
coords[str(dim_name)] = value[dim].to_numpy()
coords[str(dim_name)] = cast(xr.DataArray, value[dim]).to_numpy()

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

0 comments on commit a3ec9a5

Please sign in to comment.