From 87d74301c310fdeecb159edc2ec34fb05ef3bb13 Mon Sep 17 00:00:00 2001 From: Jacob Daitzman Date: Thu, 10 Nov 2022 15:34:45 -0500 Subject: [PATCH] Fix type errors in `future/template.py` --- algosdk/future/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/algosdk/future/template.py b/algosdk/future/template.py index 77b424c13..845ac5dc5 100644 --- a/algosdk/future/template.py +++ b/algosdk/future/template.py @@ -4,6 +4,7 @@ from . import transaction from Cryptodome.Hash import SHA256, keccak import base64 +from typing import Optional class Template: @@ -318,7 +319,7 @@ def __init__( receiver: str, amount: int, sp, - close_remainder_address: str = None, + close_remainder_address: Optional[str] = None, ): self.lease_value = bytes( [random.randint(0, 255) for x in range(constants.lease_length)]