@@ -5653,7 +5653,12 @@ def _validate_indexer(self, form: str_t, key, kind: str_t):
56535653 if key is not None and not is_integer (key ):
56545654 raise self ._invalid_indexer (form , key )
56555655
5656- def _maybe_cast_slice_bound (self , label , side : str_t , kind : Literal ["loc" , "getitem" ] = no_default ):
5656+ def _maybe_cast_slice_bound (
5657+ self ,
5658+ label ,
5659+ side : str_t ,
5660+ kind : Literal ["loc" , "getitem" ] = no_default
5661+ ):
56575662 """
56585663 This function should be overloaded in subclasses that allow non-trivial
56595664 casting on label-slice bounds, e.g. datetime-like indices allowing
@@ -5674,7 +5679,8 @@ def _maybe_cast_slice_bound(self, label, side: str_t, kind: Literal["loc", "geti
56745679 Value of `side` parameter should be validated in caller.
56755680 """
56765681 if kind not in ["loc" , "getitem" , None , no_default ]:
5677- raise ValueError ('Value for kind argument must be one of: loc, getitem or None' )
5682+ raise ValueError ('Value for kind argument must be one of: '
5683+ 'loc, getitem or None' )
56785684 self ._deprecated_arg (kind , "kind" , "_maybe_cast_slice_bound" )
56795685
56805686 # We are a plain index here (sub-class override this method if they
@@ -5719,7 +5725,8 @@ def get_slice_bound(self, label, side: str_t, kind=None) -> int:
57195725 Index of label.
57205726 """
57215727 if kind not in ["loc" , "getitem" , None ]:
5722- raise ValueError ('Value for kind argument must be one of: loc, getitem or None' )
5728+ raise ValueError ('Value for kind argument must be one of: '
5729+ 'loc, getitem or None' )
57235730
57245731 if side not in ("left" , "right" ):
57255732 raise ValueError (
0 commit comments