Skip to content

Commit 02509c5

Browse files
Lingling PengLingling Peng
authored andcommitted
initialize rows in rowset as an empty list
1 parent 80b7aaa commit 02509c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapseclient/models/table_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ class RowSet:
734734
headers: Optional[List[SelectColumn]] = None
735735
"""The list of SelectColumns that describes the rows of this set."""
736736

737-
rows: Optional[List[Row]] = None
737+
rows: Optional[List[Row]] = field(default_factory=list)
738738
"""The Rows of this set. The index of each row value aligns with the index of each header."""
739739

740740
@classmethod

0 commit comments

Comments
 (0)