Skip to content

Commit 982c6dc

Browse files
committed
refactor: rename props to table_data for clarity in SlideBuilder.table method
1 parent e0d8be0 commit 982c6dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pptxr/_pptx/slide.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,19 @@ def picture(
103103

104104
def table(self, data: DataFrame, **kwargs: Unpack[TableProps]) -> Self:
105105
rows, cols = len(data), len(data[0])
106-
props: TableData = {"type": "table", "data": data, **kwargs}
106+
table_data: TableData = {"type": "table", "data": data, **kwargs}
107107

108108
self._shape_registry.append(
109109
lambda slide: Table(
110110
slide.shapes.add_table(
111111
rows,
112112
cols,
113-
to_pptx_length(props["left"]),
114-
to_pptx_length(props["top"]),
115-
to_pptx_length(props["width"]),
116-
to_pptx_length(props["height"]),
113+
to_pptx_length(table_data["left"]),
114+
to_pptx_length(table_data["top"]),
115+
to_pptx_length(table_data["width"]),
116+
to_pptx_length(table_data["height"]),
117117
),
118-
props,
118+
table_data,
119119
)
120120
)
121121
return self

0 commit comments

Comments
 (0)