Package: beancount / 3.1.0-3

Metadata

Package Version Patches format
beancount 3.1.0-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 make test_version more lax to accept non git hg vers.patch | (download)

beancount/parser/version_test.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 make test_version more lax to accept non git/hg versions

0002 beancount scripts doctor_test.py Allow pytest import.patch | (download)

beancount/scripts/doctor_test.py | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 beancount/scripts/doctor_test.py: allow pytest import


backport/7c69601a699560672387eb0c6400c3254d71fa11.patch | (download)

beancount/core/account.py | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 [patch] fixed #933: added optional  option.


backport/4dd81ab112cc50ce5e984dda45e78f5c02ecdc4d.patch | (download)

beancount/plugins/leafonly.py | 32 18 + 14 - 0 !
beancount/plugins/leafonly_test.py | 17 17 + 0 - 0 !
2 files changed, 35 insertions(+), 14 deletions(-)

 [patch] allow balance postings on non-leaf accounts

- Adjust logic to allow balance postings for non-leaf accounts.
- Refactor LeafOnly plugin
- Add unit test to verify the updated behavior and ensure correctness.

backport/bfcef16d1cd059cc8350a94e48416adb2cdb1550.patch | (download)

beancount/core/data.py | 29 15 + 14 - 0 !
beancount/core/data_test.py | 15 15 + 0 - 0 !
2 files changed, 30 insertions(+), 14 deletions(-)

 [patch] use `optional[t]` instead of `t | none` for python 3.9
 compatibility

While most typing annotations are consumed only by type checkers, a
handful of them provide information that can be useful at runtime. For
example, beanquery uses typing annotations for the fields of the named
tuples holding ledger directive represenations derive table column
types.

Make sure that these typing annotations can be interpreted in all
supported Python versions. This requires converting some use of
the `T | None` form to `Optional[T]`. Add a test to avoid regressions.

backport/c8803e3d47b9a72ac0920b8cdaa6758a221801a6.patch | (download)

beancount/core/account.py | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 [patch] fixed #933: automatically follow-links in document finding.


backport/994c8a705aa724501c49a5c7ab2df9f6d7c6c456.patch | (download)

beancount/core/convert_test.py | 10 9 + 1 - 0 !
beancount/core/data.py | 2 1 + 1 - 0 !
beancount/core/interpolate_test.py | 10 9 + 1 - 0 !
beancount/core/position.py | 9 6 + 3 - 0 !
4 files changed, 25 insertions(+), 6 deletions(-)

 [patch] fix #934: date(1,1,1) should be none.