8000 Make enter_notify_event deprecation more explicit. · matplotlib/matplotlib@0365e18 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0365e18

Browse files
committed
Make enter_notify_event deprecation more explicit.
Since this did not previously note a removal version, I bumped it to 3.5 (assuming this is merged for 3.3.)
1 parent 7ccc2d2 commit 0365e18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,8 +1837,10 @@ def enter_notify_event(self, guiEvent=None, xy=None):
18371837
x = None
18381838
y = None
18391839
cbook.warn_deprecated(
1840-
'3.0', message='enter_notify_event expects a location but '
1841-
'your backend did not pass one.')
1840+
'3.0', removal='3.5', name='enter_notify_event',
1841+
message='Since %(since)s, %(name)s expects a location but '
1842+
'your backend did not pass one. This will become an error '
1843+
'%(removal)s.')
18421844

18431845
event = LocationEvent('figure_enter_event', self, x, y, guiEvent)
18441846
self.callbacks.process('figure_enter_event', event)

0 commit comments

Comments
 (0)
0