Skip to content

Commit 9b6a5e2

Browse files
simonjayhawkinsproost
authored andcommitted
CI: fix imminent mypy failure (pandas-dev#29747)
1 parent 8d7db98 commit 9b6a5e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/io/pytables.py

+2
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,8 @@ def convert(
20442044
the underlying table's row count are normalized to that.
20452045
"""
20462046

2047+
assert self.table is not None
2048+
20472049
_start = start if start is not None else 0
20482050
_stop = min(stop, self.table.nrows) if stop is not None else self.table.nrows
20492051
self.values = Int64Index(np.arange(_stop - _start))

0 commit comments

Comments
 (0)