Skip to content

Commit 8240722

Browse files
black reformatter
1 parent b2d13d8 commit 8240722

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/io/pytables.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def __enter__(self):
590590
def __exit__(self, exc_type, exc_value, traceback):
591591
self.close()
592592

593-
def keys(self, kind='pandas') -> List[str]:
593+
def keys(self, kind="pandas") -> List[str]:
594594
"""
595595
Return a list of keys corresponding to objects stored in HDFStore.
596596
@@ -610,13 +610,14 @@ def keys(self, kind='pandas') -> List[str]:
610610
list
611611
List of ABSOLUTE path-names (e.g. have the leading '/').
612612
"""
613-
if kind == 'pandas':
613+
if kind == "pandas":
614614
return [n._v_pathname for n in self.groups()]
615615

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

622623
def __iter__(self):

pandas/tests/io/pytables/test_store.py

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ def test_keys(self, setup_path):
299299
assert set(store) == expected
300300

301301
def test_non_pandas_keys(self, setup_path):
302-
303302
class Table1(tables.IsDescription):
304303
value1 = tables.Float32Col()
305304

0 commit comments

Comments
 (0)