Type hint workarounds

This commit is contained in:
Alex Mykyta
2024-12-18 22:13:42 -08:00
parent e0295ae526
commit 5c1bc35799
3 changed files with 27 additions and 27 deletions

View File

@@ -137,7 +137,7 @@ class InputStructGenerator_Hier(HWIFStructGenerator):
# Multiple sub-words. Cannot generate a struct
self.add_member("rd_data", width)
def enter_Field(self, node: 'FieldNode') -> Optional[WalkerAction]:
def enter_Field(self, node: 'FieldNode') -> None:
type_name = self.get_typdef_name(node)
self.push_struct(type_name, kwf(node.inst_name))
@@ -175,7 +175,7 @@ class InputStructGenerator_Hier(HWIFStructGenerator):
# Implies a corresponding decrvalue input
self.add_member('decrvalue', width)
def exit_Field(self, node: 'FieldNode') -> Optional[WalkerAction]:
def exit_Field(self, node: 'FieldNode') -> None:
self.pop_struct()