diff --git a/xarray_dataclasses/datamodel.py b/xarray_dataclasses/datamodel.py
index 06fb0e0..5d8b7d1 100644
--- a/xarray_dataclasses/datamodel.py
+++ b/xarray_dataclasses/datamodel.py
@@ -4,13 +4,24 @@ __all__ = ["DataModel"]
 
 # standard library
 from dataclasses import dataclass, field, is_dataclass
-from typing import Any, Dict, Hashable, List, Optional, Tuple, Type, Union, cast
+from typing import (
+    Any,
+    Dict,
+    Hashable,
+    List,
+    Literal,
+    Optional,
+    Tuple,
+    Type,
+    Union,
+    cast,
+)
 
 
 # dependencies
 import numpy as np
 import xarray as xr
-from typing_extensions import Literal, ParamSpec, get_type_hints
+from typing_extensions import ParamSpec, get_type_hints
 
 
 # submodules
diff --git a/xarray_dataclasses/typing.py b/xarray_dataclasses/typing.py
index 4d21d28..5f16154 100644
--- a/xarray_dataclasses/typing.py
+++ b/xarray_dataclasses/typing.py
@@ -29,7 +29,9 @@ from typing import (
     Generic,
     Hashable,
     Iterable,
+    Literal,
     Optional,
+    Protocol,
     Sequence,
     Tuple,
     Type,
@@ -43,9 +45,7 @@ import numpy as np
 import xarray as xr
 from typing_extensions import (
     Annotated,
-    Literal,
     ParamSpec,
-    Protocol,
     TypeAlias,
     get_args,
     get_origin,

diff --git a/tests/test_data.py b/tests/test_data.py
index 35ddf07..1d9c5c9 100644
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -1,11 +1,11 @@
 # standard library
 from dataclasses import dataclass
-from typing import Collection, Tuple, Union
+from typing import Collection, Literal as L, Tuple, Union
 
 
 # dependencies
 import numpy as np
-from typing_extensions import Annotated as Ann, Literal as L
+from typing_extensions import Annotated as Ann
 from xarray_dataclasses.typing import Attr, Coord, Coordof, Data
 
 
diff --git a/tests/test_dataarray.py b/tests/test_dataarray.py
index 23d3860..fa23ee7 100644
--- a/tests/test_dataarray.py
+++ b/tests/test_dataarray.py
@@ -1,12 +1,11 @@
 # standard library
 from dataclasses import dataclass
-from typing import Tuple
+from typing import Literal, Tuple
 
 
 # dependencies
 import numpy as np
 import xarray as xr
-from typing_extensions import Literal
 
 
 # submodules
diff --git a/tests/test_datamodel.py b/tests/test_datamodel.py
index a79a412..a95b1b0 100644
--- a/tests/test_datamodel.py
+++ b/tests/test_datamodel.py
@@ -1,10 +1,6 @@
 # standard library
 from dataclasses import dataclass
-from typing import Tuple
-
-
-# dependencies
-from typing_extensions import Literal
+from typing import Literal, Tuple
 
 
 # submodules
diff --git a/tests/test_dataset.py b/tests/test_dataset.py
index 41e4470..7b3b66a 100644
--- a/tests/test_dataset.py
+++ b/tests/test_dataset.py
@@ -1,12 +1,11 @@
 # standard library
 from dataclasses import dataclass
-from typing import Tuple
+from typing import Literal, Tuple
 
 
 # dependencies
 import numpy as np
 import xarray as xr
-from typing_extensions import Literal
 
 
 # submodules
diff --git a/tests/test_typing.py b/tests/test_typing.py
index 06cf3d4..92de2e4 100644
--- a/tests/test_typing.py
+++ b/tests/test_typing.py
@@ -1,12 +1,11 @@
 # standard library
-from typing import Any, Tuple, Union
+from typing import Any, Literal as L, Tuple, Union
 
 
 # dependencies
 import numpy as np
 from pytest import mark
 from typing_extensions import Annotated as Ann
-from typing_extensions import Literal as L
 
 
 # submodules

Fix import of Literal and Protocol
Import `Literal` (and `Protocol`) not from `typing_extensions` but from `typing`.
Use of `typing_extensions.Literal` fails `get_dims(tp)` in Python 3.8 and 3.9.
tests/test_dataarray.py::test_type tests/test_dataarray.py::test_data tests/test_dataarray.py::test_dtype tests/test_dataarray.py::test_dims tests/test_dataarray.py::test_attrs tests/test_dataarray.py::test_name tests/test_datamodel.py::test_xaxis_attr tests/test_datamodel.py::test_xaxis_data tests/test_datamodel.py::test_yaxis_attr tests/test_datamodel.py::test_yaxis_data tests/test_datamodel.py::test_image_coord tests/test_datamodel.py::test_image_data tests/test_datamodel.py::test_color_data tests/test_dataset.py::test_type tests/test_dataset.py::test_data_vars tests/test_dataset.py::test_dims tests/test_dataset.py::test_attrs tests/test_typing.py::test_get_dims[tp0-dims0] tests/test_typing.py::test_get_dims[tp1-dims1] tests/test_typing.py::test_get_dims[tp2-dims2] tests/test_typing.py::test_get_dims[tp3-dims3] tests/test_typing.py::test_get_dims[tp4-dims4] tests/test_typing.py::test_get_dims[tp5-dims5] tests/test_typing.py::test_get_dims[tp6-dims6] tests/test_typing.py::test_get_dims[tp7-dims7] tests/test_typing.py::test_get_dims[tp8-dims8] tests/test_typing.py::test_get_dims[tp9-dims9] tests/test_typing.py::test_get_dims[tp10-dims10] tests/test_typing.py::test_get_dims[tp11-dims11] tests/test_typing.py::test_get_dtype[tp0-None] tests/test_typing.py::test_get_dtype[tp1-None] tests/test_typing.py::test_get_dtype[tp2-dtype2] tests/test_typing.py::test_get_dtype[tp3-dtype3] tests/test_typing.py::test_get_dtype[tp4-None] tests/test_typing.py::test_get_dtype[tp5-None] tests/test_typing.py::test_get_dtype[tp6-dtype6] tests/test_typing.py::test_get_dtype[tp7-dtype7] tests/test_typing.py::test_get_dtype[tp8-dtype8] tests/test_typing.py::test_get_dtype[tp9-dtype9] tests/test_typing.py::test_get_dtype[tp10-dtype10] tests/test_typing.py::test_get_dtype[tp11-dtype11] tests/test_typing.py::test_get_name[tp0-None] tests/test_typing.py::test_get_name[tp1-None] tests/test_typing.py::test_get_name[tp2-None] tests/test_typing.py::test_get_name[tp3-None] tests/test_typing.py::test_get_name[tp4-None] tests/test_typing.py::test_get_name[tp5-attr] tests/test_typing.py::test_get_name[tp6-data] tests/test_typing.py::test_get_name[tp7-coord] tests/test_typing.py::test_get_name[tp8-name] tests/test_typing.py::test_get_name[tp9-None] tests/test_typing.py::test_get_name[tp10-attr] tests/test_typing.py::test_get_name[tp11-data] tests/test_typing.py::test_get_name[tp12-coord] tests/test_typing.py::test_get_name[tp13-name] tests/test_typing.py::test_get_name[tp14-None] tests/test_typing.py::test_get_role[tp0-Role.ATTR] tests/test_typing.py::test_get_role[tp1-Role.DATA] tests/test_typing.py::test_get_role[tp2-Role.COORD] tests/test_typing.py::test_get_role[tp3-Role.NAME] tests/test_typing.py::test_get_role[tp4-Role.OTHER] tests/test_typing.py::test_get_role[tp5-Role.ATTR] tests/test_typing.py::test_get_role[tp6-Role.DATA] tests/test_typing.py::test_get_role[tp7-Role.COORD] tests/test_typing.py::test_get_role[tp8-Role.NAME] tests/test_typing.py::test_get_role[tp9-Role.OTHER] tests/test_typing.py::test_get_role[tp10-Role.ATTR] tests/test_typing.py::test_get_role[tp11-Role.DATA] tests/test_typing.py::test_get_role[tp12-Role.COORD] tests/test_typing.py::test_get_role[tp13-Role.NAME] tests/test_typing.py::test_get_role[tp14-Role.OTHER]