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
The current indentation error is quite simplistic and it does not include the context of the statement that was associated with the indented block and where it was:
>>> deffoo():
... if lel:
... x =2
File "<stdin>", line 3
x = 2
^
IndentationError: expected an indented block
we can improve the error by adding some context:
>>> deffoo():
... if lel:
... x =2
File "<stdin>", line 3
x = 2
^
IndentationError: expected an indented block after if statement in line 2
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: