Is it possible to create multiple classes from a list, like this:
for cn in ['ABC', 'DEF', 'GHI']:
class {cn.capitalize()?}(Base):
__mapper_args__ = {
'polymorphic_identity': cn.lower(),
}
Note: In all questions I found with a similar title, questioners actually wanted to create multiple objects from a single class