I'm unclear on the namespace of the class name inside the class.
Here is an example:
class SomeClass():
some_class_attribute = SomeClass.create_attribute()
@classmethod
def create_attribute(cls, int):
return str(int)
Is there any problem with the line some_class_attribute = SomeClass.create_attribute()
?
When I'm writing a class in Spyder IDE, the class works, but Spyder displays a warning "Undefined name SomeClass".