Skip to content

Commit 4edc215

Browse files
authored
Add type annotation for LocationEvent.modifiers (matplotlib#30841)
1 parent 7085a8d commit 4edc215

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ class LocationEvent(Event):
12621262
xdata, ydata : float or None
12631263
Data coordinates of the mouse within *inaxes*, or *None* if the mouse
12641264
is not over an Axes.
1265-
modifiers : frozenset
1265+
modifiers : frozenset[str]
12661266
The keyboard modifiers currently being pressed (except for KeyEvent).
12671267
"""
12681268

lib/matplotlib/backend_bases.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ class LocationEvent(Event):
237237
inaxes: Axes | None
238238
xdata: float | None
239239
ydata: float | None
240+
modifiers: frozenset[str]
240241
def __init__(
241242
self,
242243
name: str,

0 commit comments

Comments
 (0)