-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-92986: Make level of ImportFrom not optional on ASDL #92987
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
Conversation
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
This needs a news entry at the very least and also an entry in what's new as this is technically backwards incompatible no? Users not passing this in will be broken by the change if I am not mistaken |
Yes, it is backwards incompatible (although in practice looks like people pass it). But looks like we have a test for allowing None https://bugs.python.org/issue13436: Line 1112 in e8e737b
Maybe we should close this and change ast.unparse instead? |
That would be my recommendation |
This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (python#57645, python#92987)
Okay, opened a PR for ast.unparse at #92992 |
…GH-92992) This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (pythonGH-57645, pythonGH-92987) (cherry picked from commit 200c9a8) Co-authored-by: Shantanu <[email protected]>
…ythonGH-92992) This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (pythonGH-57645, pythonGH-92987) (cherry picked from commit 200c9a8) Co-authored-by: Shantanu <[email protected]>
This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (GH-57645, GH-92987) (cherry picked from commit 200c9a8) Co-authored-by: Shantanu <[email protected]>
) (GH-96593) This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (GH-57645, GH-92987) (cherry picked from commit 200c9a8) Co-authored-by: Shantanu <[email protected]> Co-authored-by: Shantanu <[email protected]>
No description provided.