Skip to content

Commit

Permalink
fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkleijn committed Aug 18, 2023
1 parent b44b2ae commit 2deffe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/core/computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,14 +1402,14 @@ def _cov_corr(
) / (valid_count)

if method == "cov":
return cov # type: ignore[return-value]
return cov # type: ignore[return-value,unused-ignore]

else:
# compute std + corr
da_a_std = da_a.std(dim=dim)
da_b_std = da_b.std(dim=dim)
corr = cov / (da_a_std * da_b_std)
return corr # type: ignore[return-value]
return corr # type: ignore[return-value,unused-ignore]


def cross(
Expand Down

0 comments on commit 2deffe9

Please sign in to comment.