@@ -1160,7 +1160,13 @@ def test_types_bfill() -> None:
1160
1160
s1 = pd .Series ([1 , 2 , 3 ])
1161
1161
check (assert_type (s1 .bfill (), "pd.Series[int]" ), pd .Series , np .integer )
1162
1162
check (assert_type (s1 .bfill (inplace = False ), "pd.Series[int]" ), pd .Series , np .integer )
1163
+ check (
1164
+ assert_type (s1 .bfill (inplace = False , limit_area = "inside" ), "pd.Series[int]" ),
1165
+ pd .Series ,
1166
+ np .integer ,
1167
+ )
1163
1168
assert assert_type (s1 .bfill (inplace = True ), None ) is None
1169
+ assert assert_type (s1 .bfill (inplace = True , limit_area = "outside" ), None ) is None
1164
1170
1165
1171
1166
1172
def test_types_ewm () -> None :
@@ -1205,7 +1211,13 @@ def test_types_ffill() -> None:
1205
1211
s1 = pd .Series ([1 , 2 , 3 ])
1206
1212
check (assert_type (s1 .ffill (), "pd.Series[int]" ), pd .Series , np .integer )
1207
1213
check (assert_type (s1 .ffill (inplace = False ), "pd.Series[int]" ), pd .Series , np .integer )
1214
+ check (
1215
+ assert_type (s1 .ffill (inplace = False , limit_area = "inside" ), "pd.Series[int]" ),
1216
+ pd .Series ,
1217
+ np .integer ,
1218
+ )
1208
1219
assert assert_type (s1 .ffill (inplace = True ), None ) is None
1220
+ assert assert_type (s1 .ffill (inplace = True , limit_area = "outside" ), None ) is None
1209
1221
1210
1222
1211
1223
def test_types_as_type () -> None :
0 commit comments