mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
573f9d62b8
autoreformat while build
41 lines
880 B
Python
41 lines
880 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
|
|
|
|
|
|
# Linear gradient.
|
|
class DivLinearGradient(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
colors: typing.List[str],
|
|
type: str = "gradient",
|
|
angle: typing.Optional[int] = None,
|
|
):
|
|
super().__init__(
|
|
type=type,
|
|
angle=angle,
|
|
colors=colors,
|
|
)
|
|
|
|
type: str = Field(default="gradient")
|
|
angle: typing.Optional[int] = Field(
|
|
description="Angle of gradient direction.",
|
|
)
|
|
colors: typing.List[str] = Field(
|
|
min_items=2,
|
|
description=(
|
|
"Colors. Gradient points will be located at an equal "
|
|
"distance from each other."
|
|
),
|
|
)
|
|
|
|
|
|
DivLinearGradient.update_forward_refs()
|