Skip to content

Commit

Permalink
(fix): ensure mypy is happy with values typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Sep 19, 2024
1 parent e5cba82 commit 08f4ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def values(self) -> np.ndarray:

@values.setter
def values(self, values):
self.data = values
self.data = np.asarray(values)

def to_base_variable(self) -> Variable:
"""Return this variable as a base xarray.Variable"""
Expand Down

0 comments on commit 08f4ad2

Please sign in to comment.