Skip to content

Commit 5343794

Browse files
committed
fix: Make typing Python 3.8 compatible
1 parent 0ec8256 commit 5343794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drishti/reporter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import sys
55
from subprocess import call
6+
from typing import List, Optional
67

78
# from includes.parser import * # imports {'parser', 'args', 'argparse'} # TODO: Is next line enuf
89
from drishti.includes.parser import args
@@ -29,7 +30,7 @@ def clear():
2930
_ = call('clear' if os.name == 'posix' else 'cls')
3031

3132

32-
def check_log_type(paths: list[str]) -> int | None:
33+
def check_log_type(paths: List[str]) -> Optional[int]:
3334
is_darshan = True
3435
is_recorder = True
3536
multiple_logs = len(paths) > 1

0 commit comments

Comments
 (0)