Open
Description
print('Hello')
from __future__ import annotations
At runtime i get SyntaxError
:
File "D:\_.py", line 2
from __future__ import annotations
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from __future__ imports must occur at the beginning of the file
Expected Behavior
invalid syntax
error
Actual Behavior
- no errors
Your Environment
mypy 1.0.0+dev.db0beb1014d8367221d47d3b11e2b49e757fa2fa (compiled: no)
(almost latest currently)