Skip to content

Commit 3c75b7f

Browse files
committed
added type ignore to _core.py
1 parent 021cc5a commit 3c75b7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/plotting/_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,9 @@ def __call__(self, *args, **kwargs):
10381038
label_name = label_kw or y
10391039
data.name = label_name
10401040
else:
1041-
match = is_list_like(label_kw) and len(label_kw) == len(y)
1041+
# error: Argument 1 to "len" has incompatible type "Any | bool";
1042+
# expected "Sized" [arg-type]
1043+
match = is_list_like(label_kw) and len(label_kw) == len(y) # type: ignore[arg-type]
10421044
if label_kw and not match:
10431045
raise ValueError(
10441046
"label should be list-like and same length as y"

0 commit comments

Comments
 (0)