Skip to content

Commit

Permalink
fix: import Literal from type_extensions in Python 3.7 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jun 11, 2024
1 parent 388bcc2 commit e6a8ec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nodejs_wheel/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
import os
import subprocess
import sys
from typing import Any, Iterable, Literal, overload
from typing import Any, Iterable, overload

try:
from typing import Literal # python >=3.8
except ImportError:
from typing_extensions import Literal # type: ignore

ROOT_DIR = os.path.dirname(__file__)

Expand Down

0 comments on commit e6a8ec3

Please sign in to comment.