-
Notifications
You must be signed in to change notification settings - Fork 936
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
code_gen.rs
should take into account existing code preferences
#454
Comments
I just ran into this as well with image = {"primary": 23}
if image["primary"] == True:
print("hello!") Running image = {"primary": 23}
if image['primary'] is True:
print("hello!") If the intent is to have |
Yeah agreed. It actually used to double-quote, but it required forking RustPython. I’ll look into it again and see if we can at least preserve double quotes, since it’d go a long way towards compatibility. |
(Also: thank you for the clear example + version number etc.) |
I'm gonna ship some improvements to this today. |
It'd be great to generate code that's aware of existing indentation and quotation preferences.
The text was updated successfully, but these errors were encountered: