fixed type annotations type in parsers

This commit is contained in:
Anton Lydike 2022-04-01 13:30:55 +02:00
parent d18843a88b
commit 4d2d65a10d
4 changed files with 4 additions and 4 deletions

View File

@ -123,5 +123,5 @@ class AssemblyFileLoader(ProgramLoader):
return 0.01
@classmethod
def get_options(cls, argv: list[str]) -> [List[str], T_ParserOpts]:
def get_options(cls, argv: List[str]) -> [List[str], T_ParserOpts]:
return argv, {}

View File

@ -34,7 +34,7 @@ class ElfBinaryFileLoader(ProgramLoader):
return 0
@classmethod
def get_options(cls, argv: list[str]) -> [List[str], T_ParserOpts]:
def get_options(cls, argv: List[str]) -> [List[str], T_ParserOpts]:
return argv, {}
def parse(self) -> Program:

View File

@ -22,7 +22,7 @@ class MemoryImageLoader(ProgramLoader):
return 0
@classmethod
def get_options(cls, argv: list[str]) -> [List[str], T_ParserOpts]:
def get_options(cls, argv: List[str]) -> [List[str], T_ParserOpts]:
return argv, {}
def parse(self) -> Iterable[Program]:

View File

@ -29,7 +29,7 @@ class ProgramLoader(ABC):
@classmethod
@abstractmethod
def get_options(cls, argv: list[str]) -> [List[str], T_ParserOpts]:
def get_options(cls, argv: List[str]) -> [List[str], T_ParserOpts]:
"""
parse command line args into an options dictionary