Skip to content

Commit

Permalink
Adjust sdk syntax code for python less than 3.10 (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
alidzm authored Mar 1, 2023
1 parent b61ed98 commit 8759549
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

8 comments on commit 8759549

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

human-protocol-escrow-dashboard – ./packages/apps/escrow-dashboard

human-protocol-escrow-dashboard-humanprotocol.vercel.app
human-protocol-escrow-dashboard-git-main-humanprotocol.vercel.app
dashboard.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

recording-oracle – ./packages/examples/fortune/recording-oracle

recording-oracle-jade.vercel.app
recording-oracle-git-main-humanprotocol.vercel.app
recording-oracle-humanprotocol.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-reputation-oracle-mumbai – ./packages/examples/fortune/reputation-oracle

fortune-reputation-oracle-mumbai.vercel.app
fortune-reputation-oracle-mumbai-humanprotocol.vercel.app
fortune-reputation-oracle-mumbai-git-main-humanprotocol.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

job-launcher-client – ./packages/examples/fortune/launcher/client

job-launcher-client.vercel.app
job-launcher-client-humanprotocol.vercel.app
job-launcher-client-git-main-humanprotocol.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

job-launcher-server – ./packages/examples/fortune/launcher/server

job-launcher-server.vercel.app
job-launcher-server-git-main-humanprotocol.vercel.app
job-launcher-server-humanprotocol.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 8759549 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

exchange-oracle – ./

Please sign in to comment.