mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Bump pydivkit and python codegen
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Generated code. Do not modify.
|
||||
|
||||
from __future__ import annotations
|
||||
from pydivkit.core import BaseDiv, Field
|
||||
from pydivkit.core import BaseDiv, Field, Expr
|
||||
import enum
|
||||
import typing
|
||||
|
||||
@@ -12,16 +12,18 @@ class EntityWithArray(BaseDiv):
|
||||
|
||||
def __init__(
|
||||
self, *,
|
||||
array: typing.List[entity.Entity],
|
||||
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.List[entity.Entity] = Field(
|
||||
array: typing.Sequence[entity.Entity] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user