8000 Fix type hints for Legend.bbox_to_anchor · matplotlib/matplotlib@418ee6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 418ee6a

Browse files
committed
Fix type hints for Legend.bbox_to_anchor
1 parent 1aca764 commit 418ee6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/legend.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ class Legend(Artist):
128128
draw_frame = set_frame_on
129129
def get_bbox_to_anchor(self) -> BboxBase: ...
130130
def set_bbox_to_anchor(
131-
self, bbox: BboxBase | None, transform: Transform | None = ...
131+
self,
132+
bbox: BboxBase
133+
| tuple[float, float]
134+
| tuple[float, float, float, float]
135+
| None,
136+
transform: Transform | None = ...
132137
) -> None: ...
133138
@overload
134139
def set_draggable(

0 commit comments

Comments
 (0)
0