Files
divkit/json-builder/python/pydivkit/div/div_shape_drawable.py
T
timatifey 7bb4ec59c2 pydivkit gitignore
gitignore change
2022-10-20 13:45:09 +03:00

36 lines
898 B
Python

# Generated code. Do not modify.
from __future__ import annotations
from pydivkit.core import BaseDiv, Field
import enum
import typing
from . import div_shape
from . import div_stroke
# Drawable of a simple geometric shape.
class DivShapeDrawable(BaseDiv):
def __init__(
self, *,
color: str,
shape: div_shape.DivShape,
type: str = 'shape_drawable',
stroke: typing.Optional[div_stroke.DivStroke] = None,
):
super().__init__(
type=type,
color=color,
shape=shape,
stroke=stroke,
)
type: str = Field(default='shape_drawable')
color: str = Field(format="color", description='Fill color.')
shape: div_shape.DivShape = Field(description='Shape.')
stroke: typing.Optional[div_stroke.DivStroke] = Field(description='Stroke style.')
DivShapeDrawable.update_forward_refs()