class Entity1(SuperEntity):
def __init__(self, value):
value = self.correctionValue(value)
self.value = value
class EntityFactory():
def getEntity1(self, value):
entity = Entity1(value)
return entity
entityFactory = EntityFactory
entity = entityFactory.getEntity1(0)
TypeError: unbound method getEntity1() must be called with EntityFactory instance as first argument (got int instance instead)Что я делаю не так, подскажите пожалуйста?
P.S. Имена всего выбраны абстрактно :)