We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given code like:
a = ( # foo, )
get_patched_ast will incorrectly scan past the empty tuple and cause MismatchedTokenError.
get_patched_ast
MismatchedTokenError
The following test case will blow up in _consume_pattern because it does not match the pattern
_consume_pattern
def test_empty_tuple_node4(self): source = "a = (\n# foo,\n)" ast_frag = patchedast.get_patched_ast(source, True) checker = _ResultChecker(self, ast_frag) checker.check_children("Tuple", ["()"])
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given code like:
get_patched_ast
will incorrectly scan past the empty tuple and causeMismatchedTokenError
.The following test case will blow up in
_consume_pattern
because it does not match the patternThe text was updated successfully, but these errors were encountered: