Skip to content

Commit a903c6e

Browse files
Remove redundant check and make mypy happy
1 parent 9e44d2d commit a903c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/pytables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def keys(self) -> List[str]:
595595
if objects:
596596
return objects
597597

598-
self._check_if_open()
598+
assert self._handle is not None # mypy
599599
return [n._v_pathname for n in self._handle.walk_nodes("/", classname="Table")]
600600

601601
def __iter__(self):

0 commit comments

Comments
 (0)