Skip to content

Commit 55a72c2

Browse files
Flake8 fixes
1 parent f41662f commit 55a72c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pandas/io/pytables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ def keys(self, kind='pandas') -> List[str]:
605605

606606
if kind == 'tables':
607607
self._check_if_open()
608-
return [n._v_pathname for n in self._handle.walk_nodes('/', classname='Table')]
608+
return [n._v_pathname
609+
for n in self._handle.walk_nodes('/', classname='Table')]
609610
raise ValueError(f"kind should be either pandas' or 'table' but is {kind}")
610611

611612
def __iter__(self):

pandas/tests/io/pytables/test_store.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,13 @@ def test_non_pandas_keys(self, setup_path):
300300

301301
class Table1(tables.IsDescription):
302302
value1 = tables.Float32Col()
303+
303304
class Table2(tables.IsDescription):
304305
value2 = tables.Float32Col()
306+
305307
class Table3(tables.IsDescription):
306308
value3 = tables.Float32Col()
309+
307310
with ensure_clean_path(setup_path) as path:
308311
with tables.open_file(path, mode="w") as h5file:
309312
group = h5file.create_group("/", "group")

0 commit comments

Comments
 (0)