File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
third_party/bigframes_vendored/pandas/core/strings Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 38
38
class StringMethods (bigframes .operations .base .SeriesMethods , vendorstr .StringMethods ):
39
39
__doc__ = vendorstr .StringMethods .__doc__
40
40
41
- def __getitem__ (self , key : int | slice ) -> series .Series :
41
+ def __getitem__ (self , key : Union [ int , slice ] ) -> series .Series :
42
42
if isinstance (key , int ):
43
43
if key < 0 :
44
44
raise NotImplementedError ("Negative indexing is not supported." )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class StringMethods:
13
13
R's stringr package.
14
14
"""
15
15
16
- def __getitem__ (self , key : int | slice ):
16
+ def __getitem__ (self , key : typing . Union [ int , slice ] ):
17
17
"""
18
18
Index or slice string or list in the Series.
19
19
You can’t perform that action at this time.
0 commit comments