mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
40 lines
866 B
Python
40 lines
866 B
Python
# Generated code. Do not modify.
|
|
# flake8: noqa: F401, F405, F811
|
|
|
|
from __future__ import annotations
|
|
|
|
import enum
|
|
import typing
|
|
|
|
from pydivkit.core import BaseDiv, Expr, Field
|
|
|
|
|
|
# An integer variable.
|
|
class IntegerVariable(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
type: str = "integer",
|
|
name: typing.Optional[typing.Union[Expr, str]] = None,
|
|
value: typing.Optional[typing.Union[Expr, int]] = None,
|
|
**kwargs: typing.Any,
|
|
):
|
|
super().__init__(
|
|
type=type,
|
|
name=name,
|
|
value=value,
|
|
**kwargs,
|
|
)
|
|
|
|
type: str = Field(default="integer")
|
|
name: typing.Union[Expr, str] = Field(
|
|
min_length=1,
|
|
description="Variable name.",
|
|
)
|
|
value: typing.Union[Expr, int] = Field(
|
|
description="Value.",
|
|
)
|
|
|
|
|
|
IntegerVariable.update_forward_refs()
|