Skip to content

Commit a81c41b

Browse files
committed
#204 Import Protocol from typing
1 parent f1aeccb commit a81c41b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xarray_dataclasses/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from functools import partial
77
from inspect import signature
88
from types import MethodType
9-
from typing import Any, Callable, Optional, Type, TypeVar, Union, overload
9+
from typing import Any, Callable, Optional, Protocol, Type, TypeVar, Union, overload
1010

1111

1212
# dependencies
1313
import numpy as np
1414
import xarray as xr
15-
from typing_extensions import ParamSpec, Protocol
15+
from typing_extensions import ParamSpec
1616

1717

1818
# submodules

xarray_dataclasses/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from functools import partial
77
from inspect import signature
88
from types import MethodType
9-
from typing import Any, Callable, Dict, Optional, Type, TypeVar, overload
9+
from typing import Any, Callable, Dict, Optional, Protocol, Type, TypeVar, overload
1010

1111

1212
# dependencies
1313
import numpy as np
1414
import xarray as xr
15-
from typing_extensions import ParamSpec, Protocol
15+
from typing_extensions import ParamSpec
1616

1717

1818
# submodules

0 commit comments

Comments
 (0)