path in change events

This commit is contained in:
John Lancaster
2026-02-21 23:07:30 -06:00
parent 54e2febf3b
commit 842868c491
3 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
from collections.abc import MutableSequence
from dataclasses import dataclass
from typing import Generic, TypeVar
@@ -8,6 +9,7 @@ T = TypeVar("T")
class ChangeEvent(Generic[T]):
index: int
item: T
path: MutableSequence[int] | None = None
@dataclass(frozen=True)