Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/courier/types/shared/elemental_text_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
class ElementalTextNode(ElementalBaseNode):
"""Represents a body of text to be rendered inside of the notification."""

content: str
"""The text content displayed in the notification.

Either this field must be specified, or the elements field
"""

align: Optional[Literal["left", "center", "right"]] = None
"""Text alignment."""

Expand All @@ -28,6 +22,12 @@ class ElementalTextNode(ElementalBaseNode):
color: Optional[str] = None
"""Specifies the color of text. Can be any valid css color value"""

content: Optional[str] = None
"""The text content displayed in the notification.

Either this field must be specified, or the elements field
"""

font_size: Optional[str] = None
"""CSS px font size for this text block, e.g.

Expand Down
14 changes: 7 additions & 7 deletions src/courier/types/shared_params/elemental_text_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, Required
from typing_extensions import Literal

from .locales import Locales
from ..shared.text_style import TextStyle
Expand All @@ -15,12 +15,6 @@
class ElementalTextNode(ElementalBaseNode, total=False):
"""Represents a body of text to be rendered inside of the notification."""

content: Required[str]
"""The text content displayed in the notification.

Either this field must be specified, or the elements field
"""

align: Literal["left", "center", "right"]
"""Text alignment."""

Expand All @@ -30,6 +24,12 @@ class ElementalTextNode(ElementalBaseNode, total=False):
color: Optional[str]
"""Specifies the color of text. Can be any valid css color value"""

content: str
"""The text content displayed in the notification.

Either this field must be specified, or the elements field
"""

font_size: Optional[str]
"""CSS px font size for this text block, e.g.

Expand Down