From 4d2d65a10dbbc7c3cb3a23291ba535ad5fa99076 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 1 Apr 2022 13:30:55 +0200 Subject: [PATCH] fixed type annotations type in parsers --- riscemu/parser.py | 2 +- riscemu/priv/ElfLoader.py | 2 +- riscemu/priv/ImageLoader.py | 2 +- riscemu/types/program_loader.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/riscemu/parser.py b/riscemu/parser.py index d91c40f..eb06dc5 100644 --- a/riscemu/parser.py +++ b/riscemu/parser.py @@ -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, {} diff --git a/riscemu/priv/ElfLoader.py b/riscemu/priv/ElfLoader.py index f8538c6..199c2ed 100644 --- a/riscemu/priv/ElfLoader.py +++ b/riscemu/priv/ElfLoader.py @@ -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: diff --git a/riscemu/priv/ImageLoader.py b/riscemu/priv/ImageLoader.py index 11f8fe7..de9341a 100644 --- a/riscemu/priv/ImageLoader.py +++ b/riscemu/priv/ImageLoader.py @@ -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]: diff --git a/riscemu/types/program_loader.py b/riscemu/types/program_loader.py index e951749..65db90f 100644 --- a/riscemu/types/program_loader.py +++ b/riscemu/types/program_loader.py @@ -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