On Mon, May 20, 2024 at 4:08 PM Daniele Nicolodi <dani...@grinta.net> wrote:
> 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. Ah right on. Sent https://github.com/beancount/beancount/pull/825 > > > 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() Aaaah that makes sense. Thanks for the pointer! > > Cheers, > Dan > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Beancount" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/beancount/PkeAxHwN-8U/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > beancount+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/0e0075fe-1fea-451d-b2bd-3629cf75f756%40grinta.net > . > -- 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 beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CACjABk%3D1P3r5Rs1ZAiZEj2pawLkfOXZ2J1akO9c_4BQQKvBnUg%40mail.gmail.com.