Bug summary
When hovering over an interactive plot, multiple KeyError: 'buttons' messages fire.
Code for reproduction
import matplotlib.pyplot as plt
%matplotlib widget
plt.plot([1, 2, 3, 4])
Actual outcome
KeyError: 'buttons'

Expected outcome
Hovering works without error
Additional information
No response
Operating system
No response
Matplotlib Version
3.10.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None