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

chore: avoid mutable default values in class attributes (DEV-3234) #764

Merged
merged 4 commits into from Jan 25, 2024

Conversation

jnussbaum
Copy link
Collaborator

@jnussbaum jnussbaum commented Jan 25, 2024

In some places, dsp-tools uses defaults for mutable class attributes, which is a bad idea: https://docs.astral.sh/ruff/rules/mutable-class-default/

@jnussbaum jnussbaum self-assigned this Jan 25, 2024
@jnussbaum jnussbaum changed the title chore: avoid mutable class attributes chore: avoid mutable default values in class attributes Jan 25, 2024
@jnussbaum jnussbaum changed the title chore: avoid mutable default values in class attributes chore: avoid mutable default values in class attributes (DEV-3234) Jan 25, 2024
Copy link

linear bot commented Jan 25, 2024

@jnussbaum jnussbaum merged commit 1d9e5de into main Jan 25, 2024
13 checks passed
@jnussbaum jnussbaum deleted the wip/no-classvar branch January 25, 2024 15:54
@daschbot daschbot mentioned this pull request Jan 25, 2024
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

2 participants