def __init__(self, app: web.Application, defaults: List[dict]): FlushedStore.__init__(self, app) TwinKeyDict.__init__(self) self.key: str = None self._defaults = defaults self._ready_event: asyncio.Event = None self.clear() # inserts defaults
def __init__(self, app: web.Application, defaults: list[types.StoreEntry]): self: TwinKeyDict[str, int, dict] FlushedStore.__init__(self, app) TwinKeyDict.__init__(self) self.key: str = None self._defaults = defaults self._ready_event: asyncio.Event = None self.clear() # inserts defaults