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

from __future__ import annotations

from dataclasses import dataclass


@dataclass
class Animal:
    id: str


@dataclass
class Paragraph:
    emphasis: list[str] | None = None
    lang: str | None = None
    value: str | None = None


@dataclass
class Vehicle:
    vin: str


@dataclass
class Car(Vehicle):
    doors: int


@dataclass
class Cat(Animal):
    lives: int


@dataclass
class Dog(Animal):
    breed: str


@dataclass
class Zoo:
    animal: list[Cat | Dog]
    vehicle: Vehicle | Car | None = None
    description: Paragraph | None = None


@dataclass
class Model:
    vehicle: Vehicle
    zoo: Zoo
