Skip to content

Commit 8ebe862

Browse files
black reformatter
1 parent 55a72c2 commit 8ebe862

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/io/pytables.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def __enter__(self):
580580
def __exit__(self, exc_type, exc_value, traceback):
581581
self.close()
582582

583-
def keys(self, kind='pandas') -> List[str]:
583+
def keys(self, kind="pandas") -> List[str]:
584584
"""
585585
Return a list of keys corresponding to objects stored in HDFStore.
586586
@@ -600,13 +600,14 @@ def keys(self, kind='pandas') -> List[str]:
600600
list
601601
List of ABSOLUTE path-names (e.g. have the leading '/').
602602
"""
603-
if kind == 'pandas':
603+
if kind == "pandas":
604604
return [n._v_pathname for n in self.groups()]
605605

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

612613
def __iter__(self):

pandas/tests/io/pytables/test_store.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def test_keys(self, setup_path):
297297
assert set(store) == expected
298298

299299
def test_non_pandas_keys(self, setup_path):
300-
301300
class Table1(tables.IsDescription):
302301
value1 = tables.Float32Col()
303302

0 commit comments

Comments
 (0)