We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed887d9 commit f7433c8Copy full SHA for f7433c8
pandas/core/arrays/interval.py
@@ -537,12 +537,10 @@ def from_arrays(
537
right = _maybe_convert_platform_interval(right)
538
539
# Check for mismatched signed/unsigned integer dtypes
540
- left_dtype = getattr(left, "dtype", None)
541
- right_dtype = getattr(right, "dtype", None)
+ left_dtype = left.dtype
+ right_dtype = right.dtype
542
if (
543
- left_dtype is not None
544
- and right_dtype is not None
545
- and left_dtype.kind in "iu"
+ left_dtype.kind in "iu"
546
and right_dtype.kind in "iu"
547
and left_dtype.kind != right_dtype.kind
548
):
0 commit comments