[syntax-errors]: import from * only allowed at module scope (F406)#20166
[syntax-errors]: import from * only allowed at module scope (F406)#20166ntBre merged 9 commits intoastral-sh:mainfrom
Conversation
|
I have fixed the md file test which was causing CI to fail. Thank you |
|
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
|
have resolved the merge conflict as well. |
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
|
Hii @ntBre, would appreciate your feedback on this when you get a chance. |
ntBre
left a comment
There was a problem hiding this comment.
Thanks, this looks good overall, just a few smaller suggestions. While we're here, can we also update this comment:
I was getting confused about this other case of F406 we're not handling, but I finally realized that the comment is just wrong. It should say F405, which is not a syntax error.
Signed-off-by: 11happy <[email protected]>
ntBre
left a comment
There was a problem hiding this comment.
Thank you! This looks great to me. I just had one more test idea for a future edge case.
Signed-off-by: 11happy <[email protected]>
Summary
This PR implements F406 https://docs.astral.sh/ruff/rules/undefined-local-with-nested-import-star-usage/ as a semantic syntax error
Test Plan
I have written inline tests as directed in #17412