Skip to content

Commit

Permalink
Adjust sdk syntax code for python less than 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
alidzm committed Mar 1, 2023
1 parent b61ed98 commit 813aa16
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/sdk/python/human-protocol-sdk/human_protocol_sdk/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
import os
from decimal import Decimal
from enum import Enum
from typing import Dict, List, Tuple, Optional, Any, TypedDict
from typing import (
Dict,
List,
Tuple,
Optional,
Any,
TypedDict,
Union
)

from basemodels import Manifest
from eth_keys import keys
Expand Down Expand Up @@ -1936,7 +1944,7 @@ def _check_transfer_event(self, tx_receipt: Optional[TxReceipt]) -> bool:
return True
return False

def _find_operator(self, addr: Optional[str]) -> Tuple[str, str] | None:
def _find_operator(self, addr: Optional[str]) -> Union[Tuple[str, str], None]:
"""
Find the operator to execute the transaction from trusted wallets.
Expand Down

0 comments on commit 813aa16

Please sign in to comment.