diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1b894063..ce0bba9b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,9 +15,10 @@ jobs: - '3.11' - '3.12' - '3.13' + - '3.14' beancount: - '~= 2.3.6' - - '~= 3.0.0' + - '~= 3.0' - '@ git+https://github.com/beancount/beancount.git' exclude: - python: '3.8' 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):