-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Make Overdraft disjoint and independent of Money (#62)
This makes some breaking changes to how Overdraft works. Overdraft no longer accepts a value of zero, but instead raises on instantiation. This includes a revert of 7511220, which made Pydantic behavior inline with previous behavior of accepting zero as value for both Money and Overdraft. Overdraft no longer has a `.money` attribute, but instead now carries its own `.value` and `.currency` attributes. `MoneyParseError` is renamed to just `ParseError`, because it is also raised on instantiation of `Overdraft`. This was the case prior as well, but it was raised because an instantiation of an `Overdraft` object always also instantiated a `Money` object. - Fixes #58. - Fixes #59.
- Loading branch information
1 parent
6b6c922
commit 065fde2
Showing
10 changed files
with
420 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.