from __future__ import annotations  有人知道可以用来做什么吗?from __future__ import annotations 
from __future__ import annotations
class A:
    def __init__(self, b: B):
        self.b = b
class B:
    def __init__(self, a: A):
        self.a = a
上面这个例子,如果不用from __future__ import annotations就会报错,用了就不报错.