Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keyword args in legacy CSV Importer #140

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

jeremander
Copy link

The named keyword arguments in the (v2 legacy) beangulp.importers.csv.Importer do not seem to get passed to the parent class in the __init__ method. This can lead to unexpected behavior (for instance, I set invert_sign to True, but it was silently ignored). To fix this, we supply the keyword arguments to the call to super().__init__.

The keyword arguments passed to the deprecated importers.csv.Importer
constructor were not forwarded to the parent class constructor.
@dnicolodi dnicolodi force-pushed the fix-importer-kwargs branch from 7cbd51c to 05b58b3 Compare January 12, 2025 18:50
@dnicolodi
Copy link
Collaborator

Thanks! I edited the commit message slightly.

@dnicolodi dnicolodi merged commit ef2bf9c into beancount:master Jan 12, 2025
19 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.

2 participants