mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Autoreformat code while building
autoreformat while build
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Generated code. Do not modify.
|
||||
# flake8: noqa: F405
|
||||
|
||||
from .entity import Entity
|
||||
from .entity_with_array import EntityWithArray
|
||||
@@ -45,3 +46,5 @@ EntityWithStringArrayProperty.update_forward_refs()
|
||||
EntityWithStringEnumProperty.update_forward_refs()
|
||||
EntityWithStringEnumPropertyWithDefaultValue.update_forward_refs()
|
||||
EntityWithoutProperties.update_forward_refs()
|
||||
|
||||
__all__ = ('Entity', 'EntityWithArray', 'EntityWithArrayOfEnums', 'EntityWithArrayOfEnumsItem', 'EntityWithArrayOfExpressions', 'EntityWithArrayOfNestedItems', 'EntityWithArrayOfNestedItemsItem', 'EntityWithArrayWithTransform', 'EntityWithComplexProperty', 'EntityWithComplexPropertyProperty', 'EntityWithComplexPropertyWithDefaultValue', 'EntityWithComplexPropertyWithDefaultValueProperty', 'EntityWithEntityProperty', 'EntityWithOptionalComplexProperty', 'EntityWithOptionalComplexPropertyProperty', 'EntityWithOptionalProperty', 'EntityWithOptionalStringEnumProperty', 'EntityWithOptionalStringEnumPropertyProperty', 'EntityWithPropertyWithDefaultValue', 'EntityWithPropertyWithDefaultValueNested', 'EntityWithRequiredProperty', 'EntityWithSimpleProperties', 'EntityWithStrictArray', 'EntityWithStringArrayProperty', 'EntityWithStringEnumProperty', 'EntityWithStringEnumPropertyProperty', 'EntityWithStringEnumPropertyWithDefaultValue', 'EntityWithStringEnumPropertyWithDefaultValueValue', 'EntityWithoutProperties')
|
||||
@@ -21,7 +21,9 @@ class EntityWithArray(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array')
|
||||
array: typing.List[entity.Entity] = Field(min_items=1)
|
||||
array: typing.List[entity.Entity] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithArray.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithArrayOfEnums(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array_of_enums')
|
||||
items: typing.List[EntityWithArrayOfEnumsItem] = Field(min_items=1)
|
||||
items: typing.List[EntityWithArrayOfEnumsItem] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
class EntityWithArrayOfEnumsItem(str, enum.Enum):
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithArrayOfExpressions(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array_of_expressions')
|
||||
items: typing.List[str] = Field(min_items=1)
|
||||
items: typing.List[str] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithArrayOfExpressions.update_forward_refs()
|
||||
|
||||
@@ -21,7 +21,9 @@ class EntityWithArrayOfNestedItems(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array_of_nested_items')
|
||||
items: typing.List[EntityWithArrayOfNestedItemsItem] = Field(min_items=1)
|
||||
items: typing.List[EntityWithArrayOfNestedItemsItem] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
class EntityWithArrayOfNestedItemsItem(BaseDiv):
|
||||
@@ -36,8 +38,11 @@ class EntityWithArrayOfNestedItemsItem(BaseDiv):
|
||||
property=property,
|
||||
)
|
||||
|
||||
entity: entity.Entity = Field()
|
||||
property: str = Field(min_length=1)
|
||||
entity: entity.Entity = Field(
|
||||
)
|
||||
property: str = Field(
|
||||
min_length=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithArrayOfNestedItemsItem.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithArrayWithTransform(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_array_with_transform')
|
||||
array: typing.List[str] = Field(min_items=1)
|
||||
array: typing.List[str] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithArrayWithTransform.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,8 @@ class EntityWithComplexProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_complex_property')
|
||||
property: EntityWithComplexPropertyProperty = Field()
|
||||
property: EntityWithComplexPropertyProperty = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithComplexPropertyProperty(BaseDiv):
|
||||
@@ -32,7 +33,9 @@ class EntityWithComplexPropertyProperty(BaseDiv):
|
||||
value=value,
|
||||
)
|
||||
|
||||
value: str = Field(format="uri")
|
||||
value: str = Field(
|
||||
format="uri"
|
||||
)
|
||||
|
||||
|
||||
EntityWithComplexPropertyProperty.update_forward_refs()
|
||||
|
||||
+4
-2
@@ -19,7 +19,8 @@ class EntityWithComplexPropertyWithDefaultValue(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_complex_property_with_default_value')
|
||||
property: typing.Optional[EntityWithComplexPropertyWithDefaultValueProperty] = Field()
|
||||
property: typing.Optional[EntityWithComplexPropertyWithDefaultValueProperty] = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithComplexPropertyWithDefaultValueProperty(BaseDiv):
|
||||
@@ -32,7 +33,8 @@ class EntityWithComplexPropertyWithDefaultValueProperty(BaseDiv):
|
||||
value=value,
|
||||
)
|
||||
|
||||
value: str = Field()
|
||||
value: str = Field(
|
||||
)
|
||||
|
||||
|
||||
EntityWithComplexPropertyWithDefaultValueProperty.update_forward_refs()
|
||||
|
||||
@@ -21,7 +21,8 @@ class EntityWithEntityProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_entity_property')
|
||||
entity: typing.Optional[entity.Entity] = Field()
|
||||
entity: typing.Optional[entity.Entity] = Field(
|
||||
)
|
||||
|
||||
|
||||
EntityWithEntityProperty.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,8 @@ class EntityWithOptionalComplexProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_optional_complex_property')
|
||||
property: typing.Optional[EntityWithOptionalComplexPropertyProperty] = Field()
|
||||
property: typing.Optional[EntityWithOptionalComplexPropertyProperty] = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithOptionalComplexPropertyProperty(BaseDiv):
|
||||
@@ -32,7 +33,9 @@ class EntityWithOptionalComplexPropertyProperty(BaseDiv):
|
||||
value=value,
|
||||
)
|
||||
|
||||
value: str = Field(format="uri")
|
||||
value: str = Field(
|
||||
format="uri"
|
||||
)
|
||||
|
||||
|
||||
EntityWithOptionalComplexPropertyProperty.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithOptionalProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_optional_property')
|
||||
property: typing.Optional[str] = Field(min_length=1)
|
||||
property: typing.Optional[str] = Field(
|
||||
min_length=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithOptionalProperty.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,8 @@ class EntityWithOptionalStringEnumProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_optional_string_enum_property')
|
||||
property: typing.Optional[EntityWithOptionalStringEnumPropertyProperty] = Field()
|
||||
property: typing.Optional[EntityWithOptionalStringEnumPropertyProperty] = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithOptionalStringEnumPropertyProperty(str, enum.Enum):
|
||||
|
||||
@@ -23,9 +23,17 @@ class EntityWithPropertyWithDefaultValue(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_property_with_default_value')
|
||||
int: typing.Optional[int] = Field()
|
||||
nested: typing.Optional[EntityWithPropertyWithDefaultValueNested] = Field(description='non_optional is used to suppress auto-generation of default value for object withall-optional fields.')
|
||||
url: typing.Optional[str] = Field(format="uri")
|
||||
int: typing.Optional[int] = Field(
|
||||
)
|
||||
nested: typing.Optional[EntityWithPropertyWithDefaultValueNested] = Field(
|
||||
description=(
|
||||
"non_optional is used to suppress auto-generation of default "
|
||||
"value for object withall-optional fields."
|
||||
)
|
||||
)
|
||||
url: typing.Optional[str] = Field(
|
||||
format="uri"
|
||||
)
|
||||
|
||||
|
||||
# non_optional is used to suppress auto-generation of default value for object with
|
||||
@@ -44,9 +52,13 @@ class EntityWithPropertyWithDefaultValueNested(BaseDiv):
|
||||
url=url,
|
||||
)
|
||||
|
||||
int: typing.Optional[int] = Field()
|
||||
non_optional: str = Field()
|
||||
url: typing.Optional[str] = Field(format="uri")
|
||||
int: typing.Optional[int] = Field(
|
||||
)
|
||||
non_optional: str = Field(
|
||||
)
|
||||
url: typing.Optional[str] = Field(
|
||||
format="uri"
|
||||
)
|
||||
|
||||
|
||||
EntityWithPropertyWithDefaultValueNested.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithRequiredProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_required_property')
|
||||
property: str = Field(min_length=1)
|
||||
property: str = Field(
|
||||
min_length=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithRequiredProperty.update_forward_refs()
|
||||
|
||||
@@ -36,15 +36,35 @@ class EntityWithSimpleProperties(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_simple_properties')
|
||||
boolean: typing.Optional[bool] = Field(description='Boolean property.')
|
||||
boolean_int: typing.Optional[bool] = Field(description='Boolean value in numeric format. @deprecated')
|
||||
color: typing.Optional[str] = Field(format="color", description='Color.')
|
||||
double: typing.Optional[float] = Field(description='Floating point number.')
|
||||
id: typing.Optional[int] = Field(description='ID. Can\'t contain expressions.')
|
||||
integer: typing.Optional[int] = Field(description='Integer.')
|
||||
positive_integer: typing.Optional[int] = Field(description='Positive integer.')
|
||||
string: typing.Optional[str] = Field(min_length=1, description='String.')
|
||||
url: typing.Optional[str] = Field(format="uri")
|
||||
boolean: typing.Optional[bool] = Field(
|
||||
description="Boolean property."
|
||||
)
|
||||
boolean_int: typing.Optional[bool] = Field(
|
||||
description="Boolean value in numeric format. @deprecated"
|
||||
)
|
||||
color: typing.Optional[str] = Field(
|
||||
format="color",
|
||||
description="Color."
|
||||
)
|
||||
double: typing.Optional[float] = Field(
|
||||
description="Floating point number."
|
||||
)
|
||||
id: typing.Optional[int] = Field(
|
||||
description="ID. Can\'t contain expressions."
|
||||
)
|
||||
integer: typing.Optional[int] = Field(
|
||||
description="Integer."
|
||||
)
|
||||
positive_integer: typing.Optional[int] = Field(
|
||||
description="Positive integer."
|
||||
)
|
||||
string: typing.Optional[str] = Field(
|
||||
min_length=1,
|
||||
description="String."
|
||||
)
|
||||
url: typing.Optional[str] = Field(
|
||||
format="uri"
|
||||
)
|
||||
|
||||
|
||||
EntityWithSimpleProperties.update_forward_refs()
|
||||
|
||||
@@ -21,7 +21,9 @@ class EntityWithStrictArray(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_strict_array')
|
||||
array: typing.List[entity.Entity] = Field(min_items=1)
|
||||
array: typing.List[entity.Entity] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithStrictArray.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,9 @@ class EntityWithStringArrayProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_string_array_property')
|
||||
array: typing.List[str] = Field(min_items=1)
|
||||
array: typing.List[str] = Field(
|
||||
min_items=1
|
||||
)
|
||||
|
||||
|
||||
EntityWithStringArrayProperty.update_forward_refs()
|
||||
|
||||
@@ -19,7 +19,8 @@ class EntityWithStringEnumProperty(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_string_enum_property')
|
||||
property: EntityWithStringEnumPropertyProperty = Field()
|
||||
property: EntityWithStringEnumPropertyProperty = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithStringEnumPropertyProperty(str, enum.Enum):
|
||||
|
||||
+2
-1
@@ -19,7 +19,8 @@ class EntityWithStringEnumPropertyWithDefaultValue(BaseDiv):
|
||||
)
|
||||
|
||||
type: str = Field(default='entity_with_string_enum_property_with_default_value')
|
||||
value: typing.Optional[EntityWithStringEnumPropertyWithDefaultValueValue] = Field()
|
||||
value: typing.Optional[EntityWithStringEnumPropertyWithDefaultValueValue] = Field(
|
||||
)
|
||||
|
||||
|
||||
class EntityWithStringEnumPropertyWithDefaultValueValue(str, enum.Enum):
|
||||
|
||||
Reference in New Issue
Block a user