Skip to content

Commit f6bde75

Browse files
committed
chore: type fixes account
Signed-off-by: exploreriii <[email protected]>
1 parent c494f0f commit f6bde75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hiero_sdk_python/account/account_balance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Union, Dict
1+
from typing import Dict
22

33
from hiero_sdk_python.tokens.token_id import TokenId
44
from hiero_sdk_python.hbar import Hbar
@@ -42,7 +42,7 @@ def _from_proto(cls, proto: CryptoGetAccountBalanceResponse) -> "AccountBalance"
4242
if proto.tokenBalances:
4343
for token_balance in proto.tokenBalances:
4444
token_id: TokenId = TokenId._from_proto(token_balance.tokenId)
45-
balance: Union[Hbar,int] = token_balance.balance
45+
balance: int = token_balance.balance
4646
token_balances[token_id] = balance
4747

4848
return cls(hbars=hbars, token_balances=token_balances)

src/hiero_sdk_python/account/account_create_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def set_auto_renew_period(self, seconds: Union[int,Duration]) -> "AccountCreateT
103103
self.auto_renew_period = seconds
104104
else:
105105
raise TypeError("Duration of invalid type")
106-
106+
return self
107107

108108
def set_account_memo(self, memo: str) -> "AccountCreateTransaction":
109109
"""

0 commit comments

Comments
 (0)