Skip to content

Commit ce8507c

Browse files
committed
fixing unit
1 parent a931dcd commit ce8507c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bigframes/operations/strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class StringMethods(bigframes.operations.base.SeriesMethods, vendorstr.StringMethods):
3939
__doc__ = vendorstr.StringMethods.__doc__
4040

41-
def __getitem__(self, key: int | slice) -> series.Series:
41+
def __getitem__(self, key: Union[int, slice]) -> series.Series:
4242
if isinstance(key, int):
4343
if key < 0:
4444
raise NotImplementedError("Negative indexing is not supported.")

third_party/bigframes_vendored/pandas/core/strings/accessor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class StringMethods:
1313
R's stringr package.
1414
"""
1515

16-
def __getitem__(self, key: int | slice):
16+
def __getitem__(self, key: typing.Union[int, slice]):
1717
"""
1818
Index or slice string or list in the Series.
1919

0 commit comments

Comments
 (0)