From d75791b002f367a1bc13f91c8ac071601752fb11 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Thu, 11 Jun 2026 22:17:53 +0200 Subject: [PATCH 1/3] beancount: Fix type annotation for postings.other_accounts column The type annotation stated that this column is a set, but the implementation returned a list. Change the annotation to set[str] and the implementation to match. Doing this implies that the order of the elements is not deterministic, but it should not have any practical effect. Fixes #288. --- beanquery/sources/beancount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beanquery/sources/beancount.py b/beanquery/sources/beancount.py index e388b6c6..9c6d50ad 100644 --- a/beanquery/sources/beancount.py +++ b/beanquery/sources/beancount.py @@ -513,10 +513,10 @@ def account(context): """The account of the posting.""" return context.posting.account - @columns.register(set) + @columns.register(typing.Set[str]) def other_accounts(context): """The list of other accounts in the transaction, excluding that of this posting.""" - return sorted({posting.account for posting in context.entry.postings if posting is not context.posting}) + return {posting.account for posting in context.entry.postings if posting is not context.posting} @columns.register(Decimal) def number(context): From dfa4a7b22c75ffd970cb248a430becc61b7d801f Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Thu, 11 Jun 2026 22:27:01 +0200 Subject: [PATCH 2/3] ci: Add Python 3.14 to tests matrix --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1b894063..cd4063e1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,6 +15,7 @@ jobs: - '3.11' - '3.12' - '3.13' + - '3.14' beancount: - '~= 2.3.6' - '~= 3.0.0' From 5fecfcdd63eef0fd52a6da29daeb3ce50f9e8352 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Thu, 11 Jun 2026 22:28:39 +0200 Subject: [PATCH 3/3] ci: Test with latest beancount --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cd4063e1..ce0bba9b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,7 +18,7 @@ jobs: - '3.14' beancount: - '~= 2.3.6' - - '~= 3.0.0' + - '~= 3.0' - '@ git+https://github.com/beancount/beancount.git' exclude: - python: '3.8'