jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
532 stars 67 forks source link

Fix `observe_property()` docstring #218

Closed naglis closed 2 years ago

naglis commented 2 years ago
  1. Fix decorator name - the decorator for property observation handlers is @property_observer().
  2. Fix handler's unregistration method name
  3. Fix handler function signature - the signature is fun(property_name, new_value) and we can't have a bare * with no names after it.
  4. Fix undefined variable in the example
jaseg commented 2 years ago

Thank you for the fix! I should really add doctests for these.