This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
1.1.0
-
StateDict
constructor now additionally accepts the following arguments:StateDict(mapping: Mapping[K, StateVar[V]]) -> StateDict[K, V]
StateDict(mapping: Mapping[str, StateVar[V]], kwargs: StateVar[V]) -> StateDict[str, V]
StateDict(aiterable: AsyncIterable[tuple[K, V]]) -> StateDict[K, V]
-
The latest set/deleted item can be accessed as a state tuple with
StateDict.head: StateTuple[K, V | None]