mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
32 lines
658 B
Python
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()
|