insn: fix type annotation for operand index

This commit is contained in:
Willi Ballenthin
2023-03-22 10:57:17 +01:00
parent 4754a84a8a
commit e0b57fc74e

View File

@@ -125,7 +125,7 @@ class OperandNumber(_Operand):
NAMES = [f"operand[{i}].number" for i in range(MAX_OPERAND_COUNT)]
# operand[i].number: 0x12
def __init__(self, index: Union[int, float], value: int, description=None):
def __init__(self, index: int, value: Union[int, float], description=None):
"""
args:
value (int or float): positive or negative integer, or floating point number.