fixed type annotations type in parsers
This commit is contained in:
parent
d18843a88b
commit
4d2d65a10d
@ -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, {}
|
||||
|
@ -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:
|
||||
|
@ -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]:
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user