We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8dc5c6 commit c11aac2Copy full SHA for c11aac2
xarray/core/options.py
@@ -31,12 +31,12 @@ class T_Options(TypedDict):
31
32
else:
33
# See GH5624, this is a convoluted way to allow type-checking to use
34
- # `TypedDict` without requiring typing_extensions as a required dependency
35
- # to _run_ the code (it is required to type-check).
+ # `TypedDict` and `Literal` without requiring typing_extensions as a
+ # required dependency to _run_ the code (it is required to type-check).
36
try:
37
- from typing import TYPE_CHECKING, Literal, Union
+ from typing import TYPE_CHECKING, Union
38
39
- from typing_extensions import TypedDict
+ from typing_extensions import Literal, TypedDict
40
41
if TYPE_CHECKING:
42
0 commit comments