Skip to content

Commit

Permalink
chore(py): Fix aliases for pydantic >= 1.1.385
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 21, 2024
1 parent 24842bc commit 99591cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg-py/src/brand_yml/typography.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ class BrandTypographyOptionsBackgroundColor(BaseModel):
use_attribute_docstrings=True,
)

background_color: str | None = Field(None, alias="background-color")
background_color: str | None = Field(None, alias=str("background-color"))
"""
The background color to be used for this typographic element. Can be any
CSS-compatible color definition, but in general hexidecimal (`"#abc123") or
Expand Down Expand Up @@ -836,7 +836,7 @@ def _validate_weight(
class BrandTypographyOptionsLineHeight(BaseDocAttributeModel):
model_config = ConfigDict(populate_by_name=True)

line_height: float | None = Field(None, alias="line-height")
line_height: float | None = Field(None, alias=str("line-height"))
"""
The line height of this typographic element. Line height refers to the
vertical space between lines of text, which significantly impacts
Expand Down Expand Up @@ -1321,10 +1321,10 @@ class BrandTypography(BrandBase):
headings: BrandTypographyHeadings | None = None
monospace: BrandTypographyMonospace | None = None
monospace_inline: BrandTypographyMonospaceInline | None = Field(
None, alias="monospace-inline"
None, alias=str("monospace-inline")
)
monospace_block: BrandTypographyMonospaceBlock | None = Field(
None, alias="monospace-block"
None, alias=str("monospace-block")
)
link: BrandTypographyLink | None = None

Expand Down

0 comments on commit 99591cc

Please sign in to comment.