-
Notifications
You must be signed in to change notification settings - Fork 92
feat: add a __str__ method to CustomFractionalFee class #932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add a __str__ method to CustomFractionalFee class #932
Conversation
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
|
Hi, this is WorkflowBot.
|
CustomFractionalFee classThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a __str__ method to the CustomFractionalFee class to improve debugging and inspection capabilities. The change allows developers to easily view formatted string representations of CustomFractionalFee instances.
- Added a
__str__method toCustomFractionalFeeclass for string representation - Updated the example script to demonstrate the new method
- Updated CHANGELOG.md to document the change
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/hiero_sdk_python/tokens/custom_fractional_fee.py |
Implements the __str__ method to provide a formatted string representation of the class attributes |
examples/tokens/custom_fractional_fee.py |
Simplified the example by using the new __str__ method instead of manually printing each attribute |
CHANGELOG.md |
Added changelog entry documenting the new feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request:
Enhances the usability of the
CustomFractionalFeeclass by adding a string representation method and updates the related example to use this new method. This makes it easier to inspect and debug instances ofCustomFractionalFee.Added a
__str__method to theCustomFractionalFeeclass to provide a clear, formatted string representation of its attributes, improving readability and debugging.Updated the
custom_fractional_fee.pyexample to print the string representation of aCustomFractionalFeeinstance using the new__str__method.Related issue(s):
Fixes #916
Checklist
__str__method to theCustomFractionalFeeclasscustom_fractional_fee.pyexample