Skip to content

Commit 7a2ae46

Browse files
Remove redundant casts
1 parent eb4c25a commit 7a2ae46

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/util/testing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,6 @@ def assert_interval_array_equal(
883883
assert_index_equal(
884884
left.right, right.right, exact=exact, obj="{obj}.left".format(obj=obj)
885885
)
886-
left = cast(IntervalArray, left)
887-
right = cast(IntervalArray, right)
888886
assert_attr_equal("closed", left, right, obj=obj)
889887

890888

@@ -1202,7 +1200,6 @@ def assert_series_equal(
12021200
check_dtype=check_dtype,
12031201
)
12041202
elif is_interval_dtype(left) or is_interval_dtype(left):
1205-
# must cast to interval dtype to keep mypy happy
12061203
left_array = cast(IntervalArray, left.array)
12071204
right_array = cast(IntervalArray, right.array)
12081205
assert_interval_array_equal(left_array, right_array)

0 commit comments

Comments
 (0)