Skip to content

Commit 5e46e5e

Browse files
authored
Add return type annotation for Client._register_plugin (#9201)
1 parent 0510583 commit 5e46e5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

distributed/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5123,7 +5123,7 @@ def _register_plugin(
51235123
plugin: NannyPlugin | SchedulerPlugin | WorkerPlugin,
51245124
name: str,
51255125
idempotent: bool,
5126-
):
5126+
) -> Any:
51275127
if isinstance(plugin, type):
51285128
raise TypeError("Please provide an instance of a plugin, not a type.")
51295129
if any(

0 commit comments

Comments
 (0)