Fix a default value being mutable

This commit is contained in:
Mike Auty
2025-04-25 11:31:45 +01:00
parent 63f7cbd447
commit b5c98a080a
+4 -1
View File
@@ -85,7 +85,7 @@ class Volshell(interfaces.plugins.PluginInterface):
return reqs
def run(
self, additional_locals: Dict[str, Any] = {}
self, additional_locals: Dict[str, Any] = None
) -> interfaces.renderers.TreeGrid:
"""Runs the interactive volshell plugin.
@@ -93,6 +93,9 @@ class Volshell(interfaces.plugins.PluginInterface):
Return a TreeGrid but this is always empty since the point of this plugin is to run interactively
"""
if additional_locals is None:
additional_locals = {}
# Try to enable tab completion
if not has_ipython:
try: