Skip to content

beancount: Fix type annotation for postings.other_accounts column#289

Merged
dnicolodi merged 3 commits into
beancount:masterfrom
dnicolodi:fix/other-accounts-type
Jun 11, 2026
Merged

beancount: Fix type annotation for postings.other_accounts column#289
dnicolodi merged 3 commits into
beancount:masterfrom
dnicolodi:fix/other-accounts-type

Conversation

@dnicolodi

Copy link
Copy Markdown
Collaborator

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.

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 beancount#288.
@dnicolodi dnicolodi merged commit 62b6abb into beancount:master Jun 11, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operators ANY and ALL do not work with other_accounts

1 participant