mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
7bb4ec59c2
gitignore change
29 lines
585 B
Python
29 lines
585 B
Python
# Generated code. Do not modify.
|
|
|
|
from __future__ import annotations
|
|
from pydivkit.core import BaseDiv, Field
|
|
import enum
|
|
import typing
|
|
|
|
from . import div_size_unit
|
|
|
|
|
|
# Element dimension value.
|
|
class DivDimension(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
value: float,
|
|
unit: typing.Optional[div_size_unit.DivSizeUnit] = None,
|
|
):
|
|
super().__init__(
|
|
unit=unit,
|
|
value=value,
|
|
)
|
|
|
|
unit: typing.Optional[div_size_unit.DivSizeUnit] = Field()
|
|
value: float = Field(description='Value.')
|
|
|
|
|
|
DivDimension.update_forward_refs()
|