This commit is contained in:
John Lancaster
2026-02-21 10:15:54 -06:00
parent c08929d262
commit 4b568d7fa5

View File

@@ -7,16 +7,7 @@ T = TypeVar("T")
class DAGSetView(MutableSet[T]): class DAGSetView(MutableSet[T]):
""" """A mutable set-like view onto DAG._succ[u], with reverse-index maintenance."""
A mutable set-like view onto DAG._succ[u], with reverse-index maintenance.
Supports all set update operators:
- |= (union_update)
- &= (intersection_update)
- -= (difference_update)
- ^= (symmetric_difference_update)
Also supports += as an alias for update for ergonomic batching.
"""
_data: set[T] _data: set[T]
on_add: Callable[[Any], None] | None = None on_add: Callable[[Any], None] | None = None