We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390e9a4 commit c3482eeCopy full SHA for c3482ee
distributed/client.py
@@ -5101,6 +5101,14 @@ def _register_plugin(
5101
):
5102
if isinstance(plugin, type):
5103
raise TypeError("Please provide an instance of a plugin, not a type.")
5104
+ if any(
5105
+ "dask.distributed.diagnostics.plugin" in str(c)
5106
+ for c in plugin.__class__.__bases__
5107
+ ):
5108
+ raise TypeError(
5109
+ "Importing plugin base classes from `dask.distributed.diagnostics.plugin` is not supported. "
5110
+ "Please import directly from `distributed.diagnostics.plugin` instead."
5111
+ )
5112
raise TypeError(
5113
"Registering duck-typed plugins is not allowed. Please inherit from "
5114
"NannyPlugin, WorkerPlugin, or SchedulerPlugin to create a plugin."
0 commit comments