mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
PythonGenerator
python generator tests PythonGenerator init DescriptionLanguage move
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Generated code. Do not modify.
|
||||
|
||||
from __future__ import annotations
|
||||
from pydivkit.core import BaseDiv, Field
|
||||
import enum
|
||||
import typing
|
||||
|
||||
from . import entity
|
||||
|
||||
|
||||
class EntityWithArray(BaseDiv):
|
||||
|
||||
def __init__(
|
||||
self, *,
|
||||
array: typing.List[entity.Entity],
|
||||
type: str = 'entity_with_array',
|
||||
):
|
||||
super().__init__(
|
||||
type=type,
|
||||
array=array,
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array')
|
||||
array: typing.List[entity.Entity] = Field(min_items=1)
|
||||
|
||||
|
||||
EntityWithArray.update_forward_refs()
|
||||
Reference in New Issue
Block a user