From 0711bbc719f5aff91dda77c7b3aa36a53176740b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 23 Jun 2020 17:25:41 -0400 Subject: [PATCH] Backport PR #17729: Fix type doc for scroll event "step" attribute. --- lib/matplotlib/backend_bases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 5bdcb6c6a64f..205f75db493b 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1403,7 +1403,7 @@ class MouseEvent(LocationEvent): last change of keyboard state occurred while the canvas did not have focus, this attribute will be wrong. - step : int + step : float The number of scroll steps (positive for 'up', negative for 'down'). This applies only to 'scroll_event' and defaults to 0 otherwise.