from __future__ import annotations
问题 Python doc __future__ In python doc about __future__ there is a table below where it shows that annotations "optional in" 3.7.0b1 and "mandatory in" 4.0 but i am still able to use annotations in 3.8.2 without importing annotations then what is the use of it. >>> def add_int(a:int, b:int) -> int: ... return a + b >>> add_int.__annotations__ {'a': <class 'int'>, 'b': <class 'int'>, 'return': <class 'int'>} I doubt I don't clearly understand the meaning of "optional in" and "mandatory in" here