Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

1.1.0

Compare
Choose a tag to compare
@jorenham jorenham released this 11 May 08:53
· 18 commits to master since this release
e6e32d5
  • 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]