pylabrobot.resources.ResourceStack.register_will_unassign_resource_callback#

ResourceStack.register_will_unassign_resource_callback(callback: Callable[[Resource], None])#

Add a callback that will be called before a resource is unassigned from this resource.

Parameters:

callback (Callable[[Resource], None])