@@ -118,7 +118,7 @@ def mixed_index(self):
118
118
def float_index (self ):
119
119
return Float64Index ([0.0 , 2.5 , 5.0 , 7.5 , 10.0 ])
120
120
121
- def create_index (self ):
121
+ def create_index (self ) -> Float64Index :
122
122
return Float64Index (np .arange (5 , dtype = "float64" ))
123
123
124
124
def test_repr_roundtrip (self , indices ):
@@ -663,7 +663,7 @@ class TestInt64Index(NumericInt):
663
663
def indices (self , request ):
664
664
return Int64Index (request .param )
665
665
666
- def create_index (self ):
666
+ def create_index (self ) -> Int64Index :
667
667
# return Int64Index(np.arange(5, dtype="int64"))
668
668
return Int64Index (range (0 , 20 , 2 ))
669
669
@@ -801,7 +801,7 @@ def index_large(self):
801
801
large = [2 ** 63 , 2 ** 63 + 10 , 2 ** 63 + 15 , 2 ** 63 + 20 , 2 ** 63 + 25 ]
802
802
return UInt64Index (large )
803
803
804
- def create_index (self ):
804
+ def create_index (self ) -> UInt64Index :
805
805
# compat with shared Int64/Float64 tests; use index_large for UInt64 only tests
806
806
return UInt64Index (np .arange (5 , dtype = "uint64" ))
807
807
0 commit comments