Skip to content

Commit

Permalink
fix: fix type hint for stellar_sdk.Server.submit_transaction().
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed May 10, 2020
1 parent 624eafd commit 3216e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stellar_sdk/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(

def submit_transaction(
self,
transaction_envelope: Union[TransactionEnvelope, str],
transaction_envelope: Union[TransactionEnvelope, FeeBumpTransactionEnvelope, str],
skip_memo_required_check: bool = False,
) -> Union[Dict[str, Any], Coroutine[Any, Any, Dict[str, Any]]]:
"""Submits a transaction to the network.
Expand All @@ -111,7 +111,7 @@ def submit_transaction(

def __submit_transaction_sync(
self,
transaction_envelope: Union[TransactionEnvelope, str],
transaction_envelope: Union[TransactionEnvelope, FeeBumpTransactionEnvelope, str],
skip_memo_required_check: bool,
) -> Dict[str, Any]:
url = urljoin_with_query(self.horizon_url, "transactions")
Expand All @@ -127,7 +127,7 @@ def __submit_transaction_sync(

async def __submit_transaction_async(
self,
transaction_envelope: Union[TransactionEnvelope, str],
transaction_envelope: Union[TransactionEnvelope, FeeBumpTransactionEnvelope, str],
skip_memo_required_check: bool,
) -> Dict[str, Any]:
url = urljoin_with_query(self.horizon_url, "transactions")
Expand Down

0 comments on commit 3216e50

Please sign in to comment.