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

Fix type checking for sys.allowed #2503

Merged

Conversation

shenglol
Copy link
Contributor

@shenglol shenglol commented May 5, 2021

Fixes #2484.

* does not bind an InstanceFunctionCallSyntax to a symbol. This does not affect
* decorator emitting though, because in the emitter we call SemanticModel.GetSymbolInfo()
* which adds special handling for InstanceFunctionCallSyntax.
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@majastrz do we have any plan to update the binder to bind InstanceFunctionCallSyntax, PropertyAccessSyntax and ObjectPropertySyntax?

/cc @miqm.

Copy link
Member

Choose a reason for hiding this comment

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

No, It's intentionally deferred with Anthony's latest changes to support methods and property hovers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it!

@shenglol shenglol enabled auto-merge (squash) May 5, 2021 01:31
Copy link
Member

@majastrz majastrz left a comment

Choose a reason for hiding this comment

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

:shipit:

@shenglol shenglol merged commit 6d008b6 into main May 5, 2021
@shenglol shenglol deleted the shenglol/fix-namespaced-allowed-decorator-type-checking branch May 5, 2021 01:40
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.

sys.allowed decorator does not report error when providing invalid value
2 participants