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