Skip to content

Commit 5e2c098

Browse files
committed
Fix import of Literal for older Python versions
Import Literal from typing_extensions to support Python versions before 3.8.
1 parent 3d34688 commit 5e2c098

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_actions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
2-
from typing import List, Literal
2+
from typing import List
3+
from typing_extensions import Literal
34
import unittest
45
from unittest import TestCase
56

0 commit comments

Comments
 (0)