diff --git a/algosdk/template.py b/algosdk/template.py index 59890510..bb4d3de4 100644 --- a/algosdk/template.py +++ b/algosdk/template.py @@ -3,6 +3,7 @@ from . import error, encoding, constants, transaction, logic, account from Cryptodome.Hash import SHA256, keccak import base64 +from typing import Optional class Template: @@ -329,8 +330,8 @@ def __init__( receiver: str, amount: int, first_valid: int, - last_valid: int = None, - close_remainder_address: str = None, + last_valid: Optional[int] = None, + close_remainder_address: Optional[str] = None, ): self.lease_value = bytes( [random.randint(0, 255) for x in range(constants.lease_length)]