Files
divkit/api_generator/tests/references/python/entity_with_array.py
T
2023-06-08 17:24:57 +03:00

32 lines
658 B
Python

# Generated code. Do not modify.
from __future__ import annotations
from pydivkit.core import BaseDiv, Field, Expr
import enum
import typing
from . import entity
class EntityWithArray(BaseDiv):
def __init__(
self, *,
type: str = 'entity_with_array',
array: typing.Optional[typing.Sequence[entity.Entity]] = None,
**kwargs: typing.Any,
):
super().__init__(
type=type,
array=array,
**kwargs,
)
type: str = Field(default='entity_with_array')
array: typing.Sequence[entity.Entity] = Field(
min_items=1
)
EntityWithArray.update_forward_refs()