Skip to content

Commit 84d9a1d

Browse files
committed
add types
1 parent 13b29e4 commit 84d9a1d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rich/table.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,31 @@ class Column:
4040
"""Defines a column in a table."""
4141

4242
header: "RenderableType" = ""
43-
"""Renderable for the header (typically a string)"""
43+
"""RenderableType: Renderable for the header (typically a string)"""
4444

4545
footer: "RenderableType" = ""
46-
"""Renderable for the footer (typically a string)"""
46+
"""RenderableType: Renderable for the footer (typically a string)"""
4747

4848
header_style: StyleType = "table.header"
49-
"""The style of the header."""
49+
"""StyleType: The style of the header."""
5050

5151
footer_style: StyleType = "table.footer"
52-
"""The style of the footer."""
52+
"""StyleType: The style of the footer."""
5353

5454
style: StyleType = "none"
55-
"""The style of the column."""
55+
"""StyleType: The style of the column."""
5656

5757
justify: "JustifyValues" = "left"
58-
"""How to justify text within the column ("left", "center", "right", or "full")"""
58+
"""str: How to justify text within the column ("left", "center", "right", or "full")"""
5959

6060
width: Optional[int] = None
61-
"""Width of the column, or ``None`` (default) to auto calculate width."""
61+
"""Optional[int]: Width of the column, or ``None`` (default) to auto calculate width."""
6262

6363
ratio: Optional[int] = None
64-
"""Ratio to use when calculating column width, or ``None`` (default) to adapt to column contents."""
64+
"""Optional[int]: Ratio to use when calculating column width, or ``None`` (default) to adapt to column contents."""
6565

6666
no_wrap: bool = False
67-
"""Prevent wrapping of text within the column. Defaults to ``False``."""
67+
"""bool: Prevent wrapping of text within the column. Defaults to ``False``."""
6868

6969
_cells: List["RenderableType"] = field(default_factory=list)
7070

0 commit comments

Comments
 (0)