-
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-2315 Add unit test case on S5890 when annotated type is imported and has field members only #2143
Conversation
…ted and has fields members only
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! 👍
I left two minor comments. Also i left a comment in the JIRA tickets with a question for you 🙂
v : int = 10 | ||
|
||
class B: | ||
def foo(self): ... |
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.
nit You can add an empty line here.
class A: | ||
v : int = 10 | ||
|
||
class B: | ||
def foo(self): ... |
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.
minor To be more explicit about the intention of the test, I suggest to rename the classes
class A: | |
v : int = 10 | |
class B: | |
def foo(self): ... | |
class ClassWithFieldOnly: | |
v : int = 10 | |
class ClassWithMethodOnly: | |
def foo(self): ... |
Quality Gate passedIssues Measures |
SONARPY-2315