Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit b84e195

Browse files
authored
Update typing of TableSegment().count()
On my side when dst is a TableSegment object, dst.count() returns an int. Using `data-diff==0.2.8`
1 parent 122c134 commit b84e195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/table_segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def relevant_columns(self) -> List[str]:
154154
def _relevant_columns_repr(self) -> List[Expr]:
155155
return [NormalizeAsString(this[c]) for c in self.relevant_columns]
156156

157-
def count(self) -> Tuple[int, int]:
157+
def count(self) -> int:
158158
"""Count how many rows are in the segment, in one pass."""
159159
return self.database.query(self.make_select().select(Count()), int)
160160

0 commit comments

Comments
 (0)