MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / can_merge_with

Method can_merge_with

src/commands/node/basic_operations.py:655–659  ·  view source on GitHub ↗

Check if this move can be merged with another move.

(self, other: CommandBase)

Source from the content-addressed store, hash-verified

653 return False
654
655 def can_merge_with(self, other: CommandBase) -> bool:
656 """Check if this move can be merged with another move."""
657 return (isinstance(other, MoveNodeCommand) and
658 other.node == self.node and
659 abs(other.timestamp - self.timestamp) < 1.0) # Within 1 second
660
661 def merge_with(self, other: CommandBase) -> Optional[CommandBase]:
662 """Merge with another move command."""

Callers 2

merge_withMethod · 0.95

Calls

no outgoing calls

Tested by 1