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 @@ -590,15 +590,15 @@ def __enter__(self):
590
590
def __exit__ (self , exc_type , exc_value , traceback ):
591
591
self .close ()
592
592
593
- def keys (self , kind = "pandas" ) -> List [str ]:
593
+ def keys (self , kind : Optional [ str ] = "pandas" ) -> List [str ]:
594
594
"""
595
595
Return a list of keys corresponding to objects stored in HDFStore.
596
596
597
597
Parameters
598
598
----------
599
599
kind : str, default 'pandas'
600
600
When kind equals 'pandas' return pandas objects
601
- When kind equals 'table' return Tables
601
+ When kind equals 'table' return Table objects
602
602
Otherwise fail with a ValueError
603
603
604
604
Returns
@@ -618,7 +618,7 @@ def keys(self, kind="pandas") -> List[str]:
618
618
return [
619
619
n ._v_pathname for n in self ._handle .walk_nodes ("/" , classname = "Table" )
620
620
]
621
- raise ValueError (f"kind should be either pandas' or 'table' but is { kind } " )
621
+ raise ValueError (f"` kind` should be either ' pandas' or 'table' but is [ { kind } ] " )
622
622
623
623
def __iter__ (self ):
624
624
return iter (self .keys ())
You can’t perform that action at this time.
0 commit comments