-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Parse default values in dataclass
attributes correctly
#1771
Conversation
Pull Request Test Coverage Report for Build 3001456738
💛 - Coveralls |
Passed CI for me again over at https://github.com/Chia-Network/chia-blockchain/runs/8210700017?check_suite_focus=true. Thanks so much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for the quick fix @DanielNoord, that's amazing. Maybe we need 'crash' primers for astroid, this is getting stressful 😄
Yeah.. Although I tested against |
Do you mean even the pylint primer ? You need to create your own pylint branch in your private repository and launch the test with a modified astroid requirements for this, right ? |
I checked the branch out locally and ran the I'm planning on doing the same for every PR automatically in We could also start running the primer but that is even more complicated as there are many moving pieces to consider then. |
I'm doing that too when I'm suspicious of a PR, but it's very manual.
I did not put a lot of thought into it but maybe we could be using the pylint's primer json and create an astroid ast for each of the project. It might be the right time to extract pylint's testutil to another repository. |
Should be relatively straightforward though in a workflow. Only need to handle crashes which I haven't thought about fully.
The main issue is that the whole |
That does sounds great.
Yeap. Maybe hotfixing astroid will not be one of those stuff anymore when we do 😄 🤞 |
Steps
Description
Closes pylint-dev/pylint#7425
Type of Changes
My god.. This PR...
Our tests for
dataclasses
aren't really good it seems. Oh well, these PRs should help with that as well.Refs. #1768 #1764 #1770