Skip to content

Commit 620d78f

Browse files
committed
Use older typing syntax
1 parent d7b1171 commit 620d78f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/python_magic_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import tempfile
88
import unittest
9-
from typing import Optional
9+
from typing import List, Optional
1010

1111
# for output which reports a local time
1212
os.environ["TZ"] = "GMT"
@@ -21,9 +21,9 @@
2121
@dataclass
2222
class TestFile:
2323
file_name: str
24-
mime_results: list[str]
25-
text_results: list[str]
26-
no_check_elf_results: Optional[list[str]]
24+
mime_results: List[str]
25+
text_results: List[str]
26+
no_check_elf_results: Optional[List[str]]
2727
buf_equals_file: bool = True
2828

2929
# magic_descriptor is broken (?) in centos 7, so don't run those tests

0 commit comments

Comments
 (0)