cl2 has to be an attributesorry, not a class.i was wrong: whenyour problem is probably that you writehave a circular import: x f1 imports f2 and vice versa.y check your design, as it means that y has tousually should be an attribute of the class of xpossible to design your software without a circular import.
see: this