from sqlalchemy.util import KeyedTuple
visibility = KeyedTuple(['public', 'private', 'custom'], labels=['public', 'private', 'custom'])
class Test(Base):
__tablename__ = 'test'
visibility = Column(Enum(name="visibility", *visibility._asdict().values()), nullable=False)
Which means the PostgreSQL enumerate type isn't being created as it would have been if the postgresql.ENUM had been used directly in the column definition instead of the decorated MyEnum.Is this behaviour by design or should the decorated column type be expected to also create the corresponding PostgreSQL enumerate type?Thanks in advance for any feedback regarding this.