Skip to content

Commit 33bea49

Browse files
authored
chore: add return type hint to ContractId.__str__ (hiero-ledger#1655)
Signed-off-by: Luis Fuentes <luisayan100@gmail.com> Signed-off-by: Flames4fun <125478683+Flames4fun@users.noreply.github.com>
1 parent 0c37867 commit 33bea49

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
228228
- Enhance TopicInfo `__str__` method and tests with additional coverage, and update the format_key function in `key_format.py` to handle objects with a \_to_proto method.
229229
- Update changelog workflow to trigger automatically on pull requests instead of manual dispatch (#1567)
230230
- Formatted key-related unit test files (`key_utils_test.py`, `test_key_format.py`, `test_key_list.py`) using the black formatter
231+
- Add return type hint to `ContractId.__str__`. (#1654)
232+
231233
- chore: update maintainer guidelines link in MAINTAINERS.md (#1605)
232234
- chore: update merge conflict bot message with web editor tips (#1592)
233235

@@ -837,3 +839,6 @@ contract_call_local_pb2.ContractLoginfo -> contract_types_pb2.ContractLoginfo
837839
### Removed
838840

839841
- N/A
842+
843+
844+
# [0.1.0] - 2025-02-19

src/hiero_sdk_python/contract/contract_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def from_string(cls, contract_id_str: str) -> "ContractId":
134134
f"Expected format 'shard.realm.contract'."
135135
) from e
136136

137-
def __str__(self):
137+
def __str__(self) -> str:
138138
"""
139139
Returns the string representation of the ContractId.
140140

0 commit comments

Comments
 (0)