Skip to content

Clarify mutability of stream objects - #13

Merged
j-bryan merged 1 commit into
mainfrom
cfs-docs-improvement
Jul 22, 2026
Merged

Clarify mutability of stream objects#13
j-bryan merged 1 commit into
mainfrom
cfs-docs-improvement

Conversation

@caleb-sitton-inl

Copy link
Copy Markdown
Collaborator

This updates documentation to more accurately reflect the distinction between CashFlow and Generation objects, which are frozen, and CashFlowStream and GenerationStream objects, which have public, mutable entries attributes. The methods on these stream classes do not mutate the original object and instead create a new object, but this does not mean the entries attribute is not directly mutable. These clarifications have been added in documentation.

Closes #5.

@caleb-sitton-inl
caleb-sitton-inl requested a review from j-bryan July 22, 2026 22:57
@j-bryan
j-bryan merged commit 09b88b3 into main Jul 22, 2026
1 check passed
@caleb-sitton-inl
caleb-sitton-inl deleted the cfs-docs-improvement branch July 22, 2026 23:02
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.

Clarify CashFlowStream mutation semantics in documentation

2 participants