File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/hiero_sdk_python/system Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111from hiero_sdk_python .hapi .services .schedulable_transaction_body_pb2 import (
1212 SchedulableTransactionBody ,
1313)
14+ from hiero_sdk_python .hapi .services .transaction_pb2 import TransactionBody
1415from hiero_sdk_python .system .freeze_type import FreezeType
1516from hiero_sdk_python .timestamp import Timestamp
1617from hiero_sdk_python .transaction .transaction import Transaction
@@ -119,7 +120,7 @@ def _build_proto_body(self) -> FreezeTransactionBody:
119120 freeze_type = self .freeze_type ._to_proto () if self .freeze_type else None ,
120121 )
121122
122- def build_transaction_body (self ):
123+ def build_transaction_body (self ) -> TransactionBody :
123124 """
124125 Builds the transaction body for this freeze transaction.
125126
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class FreezeType(Enum):
2828 TELEMETRY_UPGRADE = 5
2929
3030 @staticmethod
31- def _from_proto (proto_obj : proto_FreezeType ):
31+ def _from_proto (proto_obj : proto_FreezeType ) -> "FreezeType" :
3232 """
3333 Converts a protobuf FreezeType to a FreezeType enum.
3434
@@ -72,8 +72,9 @@ def _to_proto(self) -> proto_FreezeType:
7272 return proto_FreezeType .TELEMETRY_UPGRADE
7373 return proto_FreezeType .UNKNOWN_FREEZE_TYPE
7474
75- def __eq__ (self , other ) :
75+ def __eq__ (self , other : object ) -> bool :
7676 if isinstance (other , FreezeType ):
7777 return self .value == other .value
7878 elif isinstance (other , int ):
7979 return self .value == other
80+ return False
You can’t perform that action at this time.
0 commit comments