From e45d2e52a5a2b1360e5e7a860de583f7bf305b34 Mon Sep 17 00:00:00 2001 From: Niklas Mertsch Date: Thu, 11 Dec 2025 21:39:01 +0100 Subject: [PATCH] Add type annotation for LocationEvent.modifiers --- lib/matplotlib/backend_bases.py | 2 +- lib/matplotlib/backend_bases.pyi | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 137611ab6703..e7edb0e7448f 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1262,7 +1262,7 @@ class LocationEvent(Event): xdata, ydata : float or None Data coordinates of the mouse within *inaxes*, or *None* if the mouse is not over an Axes. - modifiers : frozenset + modifiers : frozenset[str] The keyboard modifiers currently being pressed (except for KeyEvent). """ diff --git a/lib/matplotlib/backend_bases.pyi b/lib/matplotlib/backend_bases.pyi index 7a2b28262249..a69b36093839 100644 --- a/lib/matplotlib/backend_bases.pyi +++ b/lib/matplotlib/backend_bases.pyi @@ -237,6 +237,7 @@ class LocationEvent(Event): inaxes: Axes | None xdata: float | None ydata: float | None + modifiers: frozenset[str] def __init__( self, name: str,