Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: don't include trailing quotes in completions (#2089)

Akshay Agrawal9a20aa4fd328
diff --git a/marimo/_messaging/completion_option.py b/marimo/_messaging/completion_option.py
index f47562d44f..f0a5ffac5b 100644
--- a/marimo/_messaging/completion_option.py
+++ b/marimo/_messaging/completion_option.py
@@ -15,3 +15,7 @@ class CompletionOption:
type: str
# docstring, type hint, or other info
completion_info: Optional[str]
+
+ def __post_init__(self) -> None:
+ # Remove trailing quotes because frontends may automatically add quotes
+ self.name = self.name.rstrip('"').rstrip("'")