Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2d13d8

Browse files
committedMar 3, 2020
Flake8 fixes
1 parent f9931e5 commit b2d13d8

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
@@ -615,7 +615,8 @@ def keys(self, kind='pandas') -> List[str]:
615615

616616
if kind == 'tables':
617617
self._check_if_open()
618-
return [n._v_pathname for n in self._handle.walk_nodes('/', classname='Table')]
618+
return [n._v_pathname
619+
for n in self._handle.walk_nodes('/', classname='Table')]
619620
raise ValueError(f"kind should be either pandas' or 'table' but is {kind}")
620621

621622
def __iter__(self):

‎pandas/tests/io/pytables/test_store.py

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

303303
class Table1(tables.IsDescription):
304304
value1 = tables.Float32Col()
305+
305306
class Table2(tables.IsDescription):
306307
value2 = tables.Float32Col()
308+
307309
class Table3(tables.IsDescription):
308310
value3 = tables.Float32Col()
311+
309312
with ensure_clean_path(setup_path) as path:
310313
with tables.open_file(path, mode="w") as h5file:
311314
group = h5file.create_group("/", "group")

0 commit comments

Comments
 (0)
Please sign in to comment.