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

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel


class A(BaseModel):
    type: Literal['a'] = 'a'


type AliasDict = dict[str, str]


type U = AliasDict | A


class Model(BaseModel):
    x: U | None = {'type': 'a'}
