Skip to content
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-2290 Support decorators for FunctionType to descriptors converter #2125

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

maksim-grebeniuk-sonarsource
Copy link
Contributor

@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource commented Nov 1, 2024

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good!
I think it would be good to add a test to document the inconsistent behavior between decorators coming from Protobuf and the others, as well as having a ticket for it.

Comment on lines +46 to 47
"abc.abstractmethod",
"abstractmethod",

Choose a reason for hiding this comment

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

Can you add (either in ProjectLevelTypeTableTest or ProjectLevelSymbolTableTest, or any relevant place) a test that highlights the discrepancies between decorator properly resolved from Typeshed (where I assume we only get a local name) and the case where a proper FQN is resolved?
We should also have a ticket to track this.

Copy link

sonarqube-next bot commented Nov 5, 2024

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

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