Skip to content

Commit

Permalink
Literal was added python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 14, 2021
1 parent d8dc5c6 commit c11aac2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xarray/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class T_Options(TypedDict):

else:
# See GH5624, this is a convoluted way to allow type-checking to use
# `TypedDict` without requiring typing_extensions as a required dependency
# 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).
try:
from typing import TYPE_CHECKING, Literal, Union
from typing import TYPE_CHECKING, Union

from typing_extensions import TypedDict
from typing_extensions import Literal, TypedDict

if TYPE_CHECKING:
try:
Expand Down

0 comments on commit c11aac2

Please sign in to comment.