Skip to content

Commit

Permalink
Remove union types for type hint
Browse files Browse the repository at this point in the history
Union in type hint is introduced with PEP 604 in python 3.10.
However, we aim to support python 3.6.
  • Loading branch information
rawsample committed Dec 1, 2023
1 parent abba38a commit 36f82be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avatar2/plugins/arm/hal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FuncArg:
By default, this is a constant value, for argument transfer at runtime use RegisterFuncArg.
"""

def __init__(self, value: int | None, needs_transfer=False, size=None):
def __init__(self, value, needs_transfer=False, size=None):
assert value is None or isinstance(value, int), "Address must be an integer or None for read from register"
if needs_transfer:
assert isinstance(size, int), "Size must be specified if needs_transfer is True"
Expand Down

0 comments on commit 36f82be

Please sign in to comment.