pylabrobot.resources.ResourceStack.check_can_drop_resource_here#

ResourceStack.check_can_drop_resource_here(resource: Resource, *, reassign: bool = True) None#

Validate whether resource may be dropped onto this resource.

Non-mutating preflight check used before assignment (e.g., drag/drop, LiquidHandler). Enforces generic tree/assignment rules (reassign semantics, root name conflicts, no cycles). Override in subclasses (and call super()) to add domain-specific constraints.

Raises:

ValueError – If the drop/assignment is not allowed.

Parameters:
Return type:

None