-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix widget plugin python warnings #740
Conversation
@@ -13,6 +13,35 @@ | |||
__all__ = ["is_enterprise_environment", "create_js_plugin"] | |||
|
|||
|
|||
class CommonJsPlugin(JsPlugin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of having all the individual plugin classes (UiJsPlugin
, ExpressJsPlugin
, MatplotlibJsPlugin
)? They all do the exact same thing.
We should just get rid of the plugin_class
parameter entirely (deprecate first, release, then remove), and then it can just create a CommonJsPlugin
in there.
Or is there another reason to be able to specify a custom class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason that I know of.
I've got #741 up to remove them from the plugins
Followup for #740 Modifies our plugins to use `CommonJsPlugin` by dropping the arg (since it's made optional in #740) and using the default. --------- Co-authored-by: mikebender <[email protected]>
Followup for deephaven#740 Modifies our plugins to use `CommonJsPlugin` by dropping the arg (since it's made optional in deephaven#740) and using the default. --------- Co-authored-by: mikebender <[email protected]>
Fixes #713
Mostly minor warnings fixed
The main fix of consequence is a new class,
CommonJsPlugin
, in utilities. This should be inherited from by all plugins that useJsPlugin
becausecreate_js_plugin
actually requires something of the formCommonJsPlugin
asJsPlugin
doesn't specify the inputs it takes. I madeCommonJsPlugin
the default but aJsPlugin
can still be passed so that this doesn't break existing plugins. We should do this first and release a newutilities
package. I will make a follow-up PR that will fix the inheritance on all our packages to ensure the typing is correct.