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
rf"\\"
import contextlib, os from libcst import parse_expression @contextlib.contextmanager def native_parser(): var = os.environ.get("LIBCST_PARSER_TYPE") try: os.environ["LIBCST_PARSER_TYPE"] = "native" yield finally: os.environ.pop("LIBCST_PARSER_TYPE") if var is not None: os.environ["LIBCST_PARSER_TYPE"] = var string_literal = r'rf"\\"' parse_expression(string_literal) # fine :-) with native_parser(): parse_expression(string_literal) # fails :-(
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: