If the last thing in the python file is code that would require an indentation to follow it, an IndentationError should be thrown instead of an EOF error.
test.py:
if True:
rustpython:
SyntaxError: Got unexpected EOF at line 2 column 0
cpython:
IndentationError: expected an indented block after 'if' statement on line 1