Skip to content

Commit 2dc5ea3

Browse files
committed
chore: make some neetpick
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 12475f9 commit 2dc5ea3

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/hiero_sdk_python/consensus/topic_message_submit_transaction.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Literal, overload
55

66
from hiero_sdk_python.channels import _Channel
7+
from typing import List, Literal, Optional, overload
78
from hiero_sdk_python.client.client import Client
89
from hiero_sdk_python.consensus.topic_id import TopicId
910
from hiero_sdk_python.crypto.private_key import PrivateKey
@@ -405,10 +406,8 @@ def sign(self, private_key: PrivateKey):
405406
return self
406407

407408
@property
408-
def body_size_all_chunks(self) -> List[int]:
409-
"""
410-
Returns an array of body sizes for transactions with multiple chunks.
411-
"""
409+
def body_size_all_chunks(self) -> list[int]:
410+
"""Returns an array of body sizes for transactions with multiple chunks."""
412411
self._require_frozen()
413412
sizes = []
414413

src/hiero_sdk_python/file/file_append_transaction.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import math
1717
from typing import TYPE_CHECKING, Any, Literal, overload
1818

19+
from typing import TYPE_CHECKING, Any, List, Literal, Optional, overload
1920
from hiero_sdk_python.file.file_id import FileId
2021
from hiero_sdk_python.hapi.services import file_append_pb2, timestamp_pb2
2122
from hiero_sdk_python.hapi.services.schedulable_transaction_body_pb2 import (
@@ -32,6 +33,7 @@
3233
from hiero_sdk_python.client import Client
3334
from hiero_sdk_python.crypto.private_key import PrivateKey
3435

36+
from hiero_sdk_python.channels import _Channel
3537
from hiero_sdk_python.executable import _Method
3638
from hiero_sdk_python.transaction.transaction import TransactionReceipt
3739
from hiero_sdk_python.transaction.transaction_response import TransactionResponse
@@ -476,10 +478,8 @@ def sign(self, private_key: PrivateKey) -> FileAppendTransaction:
476478

477479

478480
@property
479-
def body_size_all_chunks(self) -> List[int]:
480-
"""
481-
Returns an array of body sizes for transactions with multiple chunks.
482-
"""
481+
def body_size_all_chunks(self) -> list[int]:
482+
"""Returns an array of body sizes for transactions with multiple chunks."""
483483
self._require_frozen()
484484
sizes = []
485485

0 commit comments

Comments
 (0)