File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ def test_string_accessors_string_series():
191
191
_check (assert_type (s_list .str .join ("-" ), "pd.Series[str]" ))
192
192
193
193
# wrap doesn't accept positional arguments other than width
194
- with pytest . raises ( TypeError ) :
194
+ if TYPE_CHECKING_INVALID_USAGE :
195
195
s .str .wrap (80 , False ) # type: ignore[misc] # pyright: ignore[reportCallIssue]
196
196
197
197
@@ -249,7 +249,7 @@ def test_string_accessors_string_index():
249
249
_check (assert_type (idx_list .str .join ("-" ), "pd.Index[str]" ))
250
250
251
251
# wrap doesn't accept positional arguments other than width
252
- with pytest . raises ( TypeError ) :
252
+ if TYPE_CHECKING_INVALID_USAGE :
253
253
idx .str .wrap (80 , False ) # type: ignore[misc] # pyright: ignore[reportCallIssue]
254
254
255
255
You can’t perform that action at this time.
0 commit comments