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: do not use mutable data structure as argument #2

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

luislhl
Copy link
Collaborator

@luislhl luislhl commented Dec 12, 2023

Acceptance Criteria

We had a bug where 2 different instances of the Healthcheck class would share the same list of components, because the components were initialized using a list as default argument for the class __init__ method.

This bug should be fixed now.

We should also avoid this kind of bug from happening in the future, by using the flake8-bugbear plugin to flake8. It will automatically detect this problem in case someone falls in the same trap.

@luislhl luislhl self-assigned this Dec 12, 2023
@luislhl luislhl requested review from tuliomir and glevco December 12, 2023 20:49
@luislhl luislhl merged commit 549cdae into master Dec 12, 2023
5 checks passed
@luislhl luislhl deleted the fix/mutable-data-structure-argument branch December 12, 2023 21:24
@luislhl luislhl mentioned this pull request Dec 15, 2023
@luislhl luislhl changed the title fix: do not use multable data structure as argument fix: do not use mutable data structure as argument Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants