Skip to content

Add __repr__ and _print to CDSTranche#236

Open
shubhamlodha21 wants to merge 1 commit intodomokane:masterfrom
shubhamlodha21:add-repr-cds-tranche
Open

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

Conversation

@shubhamlodha21
Copy link
Copy Markdown

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.

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