On 20/05/24 15:24, Aaron Stacy wrote:
But Beancount's core data type for Posting requires a non-None amount for the units field
It is an error in the typing annotation. Feel free to send a PR.
I also notice, the beancount.loader module will insert an Amount when loading the Python objects.
This is because beancount.loader also runs the plugins and does booking. This requires the transactions to be completed, namely amounts for all postings must be inferred. If you don't what that, you can load a ledger into a Python data structure with beancount.parser.parse_file()
Cheers, Dan -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0e0075fe-1fea-451d-b2bd-3629cf75f756%40grinta.net.
