Skip to content

Commit

Permalink
add mypy annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer committed Jul 7, 2024
1 parent 2f65033 commit 76ea963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/core/datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
import pandas as pd

from xarray.core.datatree_io import T_DataTreeNetcdfEngine, T_DataTreeNetcdfTypes
from xarray.core.merge import CoercibleValue
from xarray.core.merge import CoercibleMapping, CoercibleValue
from xarray.core.types import ErrorOptions, NetcdfWriteModes, ZarrWriteModes

# """
Expand Down Expand Up @@ -955,6 +955,7 @@ def update(
Just like `dict.update` this is an in-place operation.
"""
new_children: dict[str, DataTree] = {}
new_variables: CoercibleMapping

if isinstance(other, Dataset):
new_variables = other
Expand Down

0 comments on commit 76ea963

Please sign in to comment.