Skip to content
Snippets Groups Projects
Commit 2e9823d8 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix wrong type hint

parent e19da0fc
No related branches found
No related tags found
1 merge request!9Infrastructure: Type Hints, Instruction class and lists of instructions
...@@ -25,7 +25,7 @@ alloc_template = """ ...@@ -25,7 +25,7 @@ alloc_template = """
class AllocCall(Instruction): class AllocCall(Instruction):
@override @override
def __init__(self, type: str, num_elements: int, name: str = "buf", use_malloc: bool = False): def __init__(self, type: str, num_elements: str, name: str = "buf", use_malloc: bool = False):
""" """
Creates a New allocation Call Creates a New allocation Call
...@@ -62,7 +62,7 @@ class AllocCall(Instruction): ...@@ -62,7 +62,7 @@ class AllocCall(Instruction):
return s return s
def set_num_elements(self, num_elements: int): def set_num_elements(self, num_elements: str):
self._num_elements = num_elements self._num_elements = num_elements
def set_name(self, name: str): def set_name(self, name: str):
...@@ -77,7 +77,7 @@ class AllocCall(Instruction): ...@@ -77,7 +77,7 @@ class AllocCall(Instruction):
def set_use_calloc(self): def set_use_calloc(self):
self._use_malloc = False self._use_malloc = False
def get_num_elements(self) -> int: def get_num_elements(self) -> str:
return self._num_elements return self._num_elements
def get_name(self) -> str: def get_name(self) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment