-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ty] name is parameter and global is a syntax error #21312
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: 11happy <[email protected]>
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
|
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
MichaReiser
left a comment
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.
It seems some mdtests are failing. Would you mind taking a look at why they're failing?
actually two more errors are also emitted along with the expected one , can we supress others ? as the changes in this PR are not related to other two errors , |
|
For the first error, I think you can just add a global I checked how we handle this in ruff too, and it looks like we only emit the |
Signed-off-by: 11happy <[email protected]>
what do you think of this approach I have added a new symbol flag _IS_PARAMETER ? is working as expected now |
Signed-off-by: 11happy <[email protected]>
Summary
This PR implements
is_bound_parameterfor ty for syntax error name is parameter and global, this is a follow up to this #20426Test Plan
mdtest and snapshots
CC