Skip to content

Add __repr__ and _print to CDSTranche#236

Merged
domokane merged 1 commit intodomokane:masterfrom
shubhamlodha21:add-repr-cds-tranche
Apr 25, 2026
Merged

Add __repr__ and _print to CDSTranche#236
domokane merged 1 commit intodomokane:masterfrom
shubhamlodha21:add-repr-cds-tranche

Conversation

@shubhamlodha21
Copy link
Copy Markdown
Contributor

The CDSTranche class had a TODO comment requesting a repr method.
This PR adds it, following the same pattern used in CDS and CDSBasket classes.

  • Adds repr showing all key fields
  • Adds _print() for consistency with the rest of the codebase
  • Removes the resolved TODO comment

@domokane
Copy link
Copy Markdown
Owner

OK. Thanks.

@domokane domokane merged commit bdb2e6f into domokane:master Apr 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants