Answers for "Circular import error"

0

Circular import error

class A:
    def __init__(self, ref):
        from b import B
        assert isinstance(ref, B)
        self.ref = ref
Posted by: Guest on July-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language