Skip to content

Commit

Permalink
Add typing_extensions if python < 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 1, 2024
1 parent 86ba719 commit 633801d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lib/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from pathlib import Path
from typing import Any, Literal, overload
from typing import Any, overload
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal


@overload
Expand Down
1 change: 1 addition & 0 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest-isort
pytest-xdist
pytest-coverage
coverage
typing_extensions>=4.6.0; python_version < '3.8'

0 comments on commit 633801d

Please sign in to comment.