Skip to content

Commit d2adb8d

Browse files
committed
Remove unnecessary mpl_connect overload and sort imports
1 parent 3d7b644 commit d2adb8d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

lib/matplotlib/backend_bases.pyi

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,16 @@ from collections.abc import Callable, Iterable, Sequence
2222
from typing import Any, IO, Literal, NamedTuple, TypeVar, overload
2323
from numpy.typing import ArrayLike
2424
from .typing import (
25-
ColorType,
26-
LineStyleType,
2725
CapStyleType,
26+
CloseEventType,
27+
ColorType,
28+
DrawEventType,
2829
JoinStyleType,
29-
MouseEventType,
3030
KeyEventType,
31-
DrawEventType,
31+
LineStyleType,
32+
MouseEventType,
3233
PickEventType,
3334
ResizeEventType,
34-
CloseEventType,
35-
EventType
3635
)
3736

3837
def register_backend(
@@ -388,9 +387,6 @@ class FigureCanvasBase:
388387

389388
@overload
390389
def mpl_connect(self, s: DrawEventType, func: Callable[[DrawEvent], Any]) -> int: ...
391-
392-
@overload
393-
def mpl_connect(self, s: EventType, func: Callable[[Event], Any]) -> int: ...
394390
def mpl_disconnect(self, cid: int) -> None: ...
395391
def new_timer(
396392
self,

0 commit comments

Comments
 (0)