Used for enforcing behavior of functions defined by libraries.
Example
from __future__ import annotations
def foo(a: "str"): pass
print(foo.__annotations__)Used for enforcing behavior of functions defined by libraries.
from __future__ import annotations
def foo(a: "str"): pass
print(foo.__annotations__)