from__future__importannotationsfromangr.storage.memory_mixins.memory_mixinimportMemoryMixinclassTypedVariable:"""TypedVariable is a simple class that holds a value and a type."""__slots__=("type","value",)def__init__(self,type_,value):self.type=type_self.value=value
[文档]classKeyValueMemoryMixin(MemoryMixin):"""KeyValueMemoryMixin is a mixin that provides a simple key-value store for memory."""