Skip to content

Commit

Permalink
fix importing typing.Literal in Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jun 10, 2024
1 parent 388bcc2 commit df41863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nodejs_wheel/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
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 df41863

Please sign in to comment.