Skip to content
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

Override grammar: allow question marks in unquoted strings #1598

Merged
merged 2 commits into from
May 4, 2021

Conversation

odelalleau
Copy link
Collaborator

Fixes #1597

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 3, 2021
news/1597.feature Show resolved Hide resolved
Comment on lines 1003 to 1015
param(
"key={a%s: 0}" % UNQUOTED_SPECIAL,
{f"a{UNQUOTED_SPECIAL}": 0},
id="dict_key_noquote",
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the leading a is accidental here.
not sure what value it's adding here. I vote to remove it (and in that case, is this test case already covered?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it in 4f89e38 (also rebased on master to fix a conflict)

There is a test that is very similar in test_dict_container() but it doesn't test the same parser rule and doesn't use the .value() method (which seems to be the purpose here).

Copy link
Collaborator

@omry omry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@odelalleau odelalleau merged commit 713d5ea into facebookresearch:master May 4, 2021
@odelalleau odelalleau deleted the question_mark branch May 4, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override grammar: allow question marks in unquoted strings
3 participants