Skip to content

Commit 71958a2

Browse files
committed
fix
1 parent d20faef commit 71958a2

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

tronapi/main.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Licensed under the MIT License.
55
# See License.txt in the project root for license information.
66
# --------------------------------------------------------------------
7+
from typing import Union, Any
78

89
import ecdsa
910
from eth_utils import apply_to_return_value, to_hex
@@ -52,16 +53,18 @@ class Tron:
5253
# Validate address
5354
isAddress = staticmethod(is_address)
5455

55-
def __init__(self, full_node, solidity_node,
56-
event_server=None,
57-
private_key=None,
58-
modules=None):
56+
def __init__(self,
57+
full_node: Union[str, HttpProvider],
58+
solidity_node: Union[str, HttpProvider],
59+
event_server: Union[str, HttpProvider]=None,
60+
private_key: str=None,
61+
modules: Any=None):
5962
"""Connect to the Tron network.
6063
6164
Args:
62-
full_node (:obj:`str`): A provider connected to a valid full node
63-
solidity_node (:obj:`str`): A provider connected to a valid solidity node
64-
event_server (:obj:`str`, optional): Optional for smart contract events. Expects a valid event server URL
65+
full_node (Any): A provider connected to a valid full node
66+
solidity_node (Any): A provider connected to a valid solidity node
67+
event_server (Any): Optional for smart contract events. Expects a valid event server URL
6568
private_key (str): Optional default private key used when signing transactions
6669
6770
"""

0 commit comments

Comments
 (0)