File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -580,15 +580,15 @@ def __enter__(self):
580
580
def __exit__ (self , exc_type , exc_value , traceback ):
581
581
self .close ()
582
582
583
- def keys (self , kind = "pandas" ) -> List [str ]:
583
+ def keys (self , kind : Optional [ str ] = "pandas" ) -> List [str ]:
584
584
"""
585
585
Return a list of keys corresponding to objects stored in HDFStore.
586
586
587
587
Parameters
588
588
----------
589
589
kind : str, default 'pandas'
590
590
When kind equals 'pandas' return pandas objects
591
- When kind equals 'table' return Tables
591
+ When kind equals 'table' return Table objects
592
592
Otherwise fail with a ValueError
593
593
594
594
Returns
@@ -608,7 +608,7 @@ def keys(self, kind="pandas") -> List[str]:
608
608
return [
609
609
n ._v_pathname for n in self ._handle .walk_nodes ("/" , classname = "Table" )
610
610
]
611
- raise ValueError (f"kind should be either pandas' or 'table' but is { kind } " )
611
+ raise ValueError (f"` kind` should be either ' pandas' or 'table' but is [ { kind } ] " )
612
612
613
613
def __iter__ (self ):
614
614
return iter (self .keys ())
You can’t perform that action at this time.
0 commit comments