-
Notifications
You must be signed in to change notification settings - Fork 93
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
SONARPY-2329 Add tests documenting new S2638 FNs #2159
Conversation
9979d8d
to
4c39679
Compare
class IntermediateClass(ParentClass): | ||
... | ||
|
||
class IntermediateWithAnyClass(ParentClass[Any]): |
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.
does it make a difference in case we have an extra file here compared to just having these classes declared in the changeMethodContractParent.py
?
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.
Two files are indeed enough to reproduce the problem. I'll correct that.
class IntermediateClass(ParentClass): | ||
... | ||
|
||
class IntermediateWithAnyClass(ParentClass[Any]): |
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.
The real reason of the FN is not related to the Any
type, but related to inheritance from types with generic type. So, I guess it will be easier to understand what's going on if the class name will be like IntermediateWithGenericTypeParent
or something like that
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.
Makes sense!
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.
Overall, it looks good, I have two comments whiches need to be clarified
dda3fc1
to
c3d56ea
Compare
Quality Gate passedIssues Measures |
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.
LGTM
SONARPY-2329
Part of