From 9f0319f567e0f80f652e758d09c5aca053784f22 Mon Sep 17 00:00:00 2001 From: Richard Iannone Date: Mon, 11 Dec 2023 17:05:19 -0500 Subject: [PATCH] Place docstring in correct location --- great_tables/_styles.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/great_tables/_styles.py b/great_tables/_styles.py index 157019ddd..3aa678f2c 100644 --- a/great_tables/_styles.py +++ b/great_tables/_styles.py @@ -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 @@ -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: