-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implemented new checker invalid-class-object
#4510
Conversation
P.S.: I'm not too familiar with working with |
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.
Nice, that's an old issue you're fixing here !
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.
Why did you move the tests cases? Not sure this is really necessary. If it is, it would probably be better to do it in a separate PR.
An error was being thrown that the Maybe i can undo moving all test cases, and keep this in a subfolder. What do you think? |
I think we can keep the file moved the way you did, it's not confusing. Maybe in another MR that we'll rebase this one on ? |
sorry, so I should leave the files as how i moved them in this MR? just to clarify |
Yes, looks fine to me, there is a lot of functional tests starting by "invalid" so separating them again like you did make sense. |
for now, in this MR, i separated only those with > 2 files so that it would not be too heavy on the refactoring |
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.
Ok, let's merge it then!
Steps
doc/whatsnew/<current release.rst>
.Description
Implemented a new checker
invalid-class-object
, which checks for cases where a non-class object is assigned to the__class__
attributeAlso, refactored files in functional test suite
Type of Changes
Related Issue
Closes #585