fixed + completed type hints
This commit is contained in:
@@ -17,9 +17,10 @@ class InstructionSetSchema:
|
||||
VALID_EXTENSIONS = ("yaml", "json", "xml")
|
||||
|
||||
def __init__(self, path: str, configPath: str = "config.json", display: bool = False) -> None:
|
||||
self.config = Config(configPath)
|
||||
self.display = display
|
||||
self.path = path
|
||||
self.config: Config = Config(configPath)
|
||||
self.display: bool = display
|
||||
self.path: str = path
|
||||
self.structures: dict[str, Structure] = {}
|
||||
self.load()
|
||||
|
||||
def load(self) -> None:
|
||||
@@ -51,4 +52,4 @@ class InstructionSetSchema:
|
||||
renderer.render(self)
|
||||
renderer.save(path)
|
||||
if self.display:
|
||||
input("Press ENTER to quit")
|
||||
input("Press ENTER to quit")
|
||||
|
||||
Reference in New Issue
Block a user