enthought / envisage

Envisage is a Python-based framework for building applications whose functionalities can be extended by adding "plug-ins".
http://docs.enthought.com/envisage/
Other
80 stars 26 forks source link

Fix plugin repr to include the name of the plugin class #535

Closed mdickinson closed 1 year ago

mdickinson commented 1 year ago

This PR updates Plugin.__repr__ to use the name of the plugin class in place of the currently hard-coded "Plugin" string.

Before:

>>> from envisage.api import CorePlugin
>>> CorePlugin()
Plugin(id='envisage.core', name='Core')

After:

>>> from envisage.api import CorePlugin
>>> CorePlugin()
CorePlugin(id='envisage.core', name='Core')

Closes #530