-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
arg parsing truncates at hash #338
Comments
This is an unintended side-effect of our reliance on the python ast when parsing inputs: Line 77 in c1266d0
As a workaround for now, you can add an extra layer of quotes. I agree we should improve this behavior. |
@dbieber hey can we |
I don't think that will work, unfortunately. If the input is "1", json.dumps will produce '"1"' which will get parsed as a string, whereas an int is desired. |
Ok, let me check how we can use AST with preserving comments. |
Fire's arg parser truncates strings with hashes (#) in them. Simple test:
test.py:
If this is by design, it doesn't appear to be documented anywhere.
The text was updated successfully, but these errors were encountered: