Skip to content

Commit

Permalink
Improve docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogiraoserrao committed Oct 2, 2023
1 parent 46b7c94 commit 3bcca38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/widgets/_data_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ def render_width(self, data_table: DataTable[Any]) -> int:
"""Width, in cells, required to render the column with padding included.
Args:
data_table: The data table to which the column belongs.
data_table: The data table where the column will be rendered.
Returns:
The width, in cells, required to render a column; padding included.
The width, in cells, required to render the column with padding included.
"""
return 2 * data_table.cell_padding + (
self.content_width if self.auto_width else self.width
Expand Down

0 comments on commit 3bcca38

Please sign in to comment.