Skip to content

Commit 568be9a

Browse files
committed
BUG: Changing return is_named_tuble to a tuple sublclass pandas-dev#40682
1 parent 3c3589b commit 568be9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/inference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def is_named_tuple(obj) -> bool:
315315
>>> is_named_tuple((1, 2))
316316
False
317317
"""
318-
return isinstance(obj, tuple) and hasattr(obj, "_fields")
318+
return isinstance(obj, abc.Sequence) and hasattr(obj, "_fields")
319319

320320

321321
def is_hashable(obj) -> bool:

0 commit comments

Comments
 (0)