Files
divkit/json-builder/python/pydivkit/div/number_variable.py
T
mosquito 573f9d62b8 Autoreformat code while building
autoreformat while build
2022-10-27 15:57:10 +03:00

38 lines
686 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, Field
# A floating-point variable.
class NumberVariable(BaseDiv):
def __init__(
self, *,
name: str,
value: float,
type: str = "number",
):
super().__init__(
type=type,
name=name,
value=value,
)
type: str = Field(default="number")
name: str = Field(
min_length=1,
description="Variable name.",
)
value: float = Field(
description="Value.",
)
NumberVariable.update_forward_refs()