Kesalahan impor melingkar

class A:
    def __init__(self, ref):
        from b import B
        assert isinstance(ref, B)
        self.ref = ref
Exuberant Earthworm