# generated by datamodel-codegen:
#   filename:  enum_member_typed_defaults.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel


class StrOne(Enum):
    int_1 = 1
    field_1 = '1'


class IntTwo(Enum):
    field_2 = '2'
    int_2 = 2


class Model(BaseModel):
    str_one: StrOne | None = StrOne.field_1
    int_two: IntTwo | None = IntTwo.int_2
