Skip to content

Commit

Permalink
Place docstring in correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Dec 11, 2023
1 parent 8586815 commit 9f0319f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions great_tables/_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ def _to_html_style(self) -> str:

@dataclass
class CellStyleBorders(CellStyle):
sides: Literal["all", "top", "bottom", "left", "right"]
color: str = "#000000"
style: str = "solid"
weight: str = "1px"
"""A style specification for cell borders.
The `styles.borders()` class is to be used with the `tab_style()` method, which itself allows
Expand Down Expand Up @@ -190,6 +186,11 @@ class CellStyleBorders(CellStyle):
A CellStyleBorders object, which is used for a `styles` argument if specifying cell borders.
"""

sides: Literal["all", "top", "bottom", "left", "right"]
color: str = "#000000"
style: str = "solid"
weight: str = "1px"

def _to_html_style(self) -> str:
border_css_list: List[str] = []
for side in self.sides:
Expand Down

0 comments on commit 9f0319f

Please sign in to comment.