From 46a642c30c4abfa75439a853daf4d8e99ca3d008 Mon Sep 17 00:00:00 2001 From: evilchili Date: Tue, 16 Jan 2024 19:31:45 -0800 Subject: [PATCH] fix cache definition --- dmsh/shell/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmsh/shell/base.py b/dmsh/shell/base.py index 61d25ab..170fc0d 100644 --- a/dmsh/shell/base.py +++ b/dmsh/shell/base.py @@ -43,7 +43,8 @@ class BasePrompt(NestedCompleter): self._toolbar = None self._key_bindings = None self._subshells = {} - self._cache = cache + self._cache = defaultdict(dict) + self._cache.update(**cache) self._name = "Interactive Shell" def _register_subshells(self):