You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mypy/fastparse.py
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -151,19 +151,23 @@ def ast3_parse(
151
151
# Note that the functions in this module are only designed to parse syntactically valid Python code (code that does not raise when parsed using ast.parse()). The behavior of the functions in this module is **undefined** when providing invalid Python code and it can change at any point.
152
152
# So, we cannot rely on roundtrip behavior in tokenize iff ast.parse would throw when given `source`.
153
153
# The simplest way to deal with that is just to call ast.parse twice, once before and once after. So, we do that.
0 commit comments