Skip to content

Commit

Permalink
fix: Make typing Python 3.8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-tau committed Oct 27, 2024
1 parent 0ec8256 commit 5343794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drishti/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import sys
from subprocess import call
from typing import List, Optional

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


def check_log_type(paths: list[str]) -> int | None:
def check_log_type(paths: List[str]) -> Optional[int]:
is_darshan = True
is_recorder = True
multiple_logs = len(paths) > 1
Expand Down

0 comments on commit 5343794

Please sign in to comment.