-
Notifications
You must be signed in to change notification settings - Fork 839
fix: safe annotation quotes #7028
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
akshayka
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.
LGTM. But does it make sense to add a unit test for the unparsable code path?
|
@akshayka I added a failure case by mocking. There's still an unhappy path where |
|
Think CI will be fixed by #7034 |
📝 Summary
fixed #7026
If annotations without top-level resolution were quoted and containing quotes themselves, syntax breaking serialization occurred rendering a notebook un-openable.
This fixes this particular issue and additionally adds a defense guard such that invalid code should never be serialized.