def does_type_requires_extra_def(self, t: HdlType, other_types: list): try: return t._as_hdl_requires_def(self, other_types) except MethodNotOverloaded: pass return False
def does_type_requires_extra_def(self, t: HdlType, other_types: list): try: return t._as_hdl_requires_def(self, other_types) except MethodNotOverloaded: pass return isinstance(t, (HEnum, HArray)) and t not in other_types