Skip to content

Add special-casing for __match_args__ fields#192

Merged
AlexWaygood merged 2 commits intoPyCQA:masterfrom
AlexWaygood:final
Mar 26, 2022
Merged

Add special-casing for __match_args__ fields#192
AlexWaygood merged 2 commits intoPyCQA:masterfrom
AlexWaygood:final

Conversation

@AlexWaygood
Copy link
Collaborator

field6 = 0 # Y015 Bad default value. Use "field6 = ..." instead of "field6 = 0"
field7 = b"" # Y015 Bad default value. Use "field7 = ..." instead of "field7 = b''"
field8 = False # Y015 Bad default value. Use "field8 = ..." instead of "field8 = False"
# Tests for Final
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no, I added tests here too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beat you to it ;)

@AlexWaygood AlexWaygood merged commit 1f87490 into PyCQA:master Mar 26, 2022
@AlexWaygood AlexWaygood deleted the final branch March 26, 2022 18:47
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