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

Bugfix: default value reused due to reference #5

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

dbosk
Copy link
Owner

@dbosk dbosk commented Aug 6, 2023

We suffered the bug where the default value was reused throughout, thus a new instance of Config() wasn't empty.

Fixed by using None as default value.

Also improved the tests to detect this bug.

We suffered the bug where the default value was reused throughout, thus
a new instance of Config() wasn't empty.

Fixed by using `None` as default value.

Also improved the tests to detect this bug.
@dbosk dbosk merged commit 1296d80 into main Aug 6, 2023
@dbosk dbosk deleted the bug-that-cant-create-new-empty branch August 6, 2023 06:04
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.

None yet

1 participant