Пример #1
0
class EnumRecord(Record):
    e = Enum(["FOO", "BAR"])
Пример #2
0
class EnumRecord(Record):
    gamma = Enum(['foo', 'bar', 'baz'])
Пример #3
0
class EnumRecord(Record):
    e = Enum(["HELLO", "GOODBYE"])
Пример #4
0
class NamedEnumRecord(Record):
    e = Enum(["FOO", "BAR"], name="EType")