From 775674c81720c861cd6e81494ca534992f60e74c Mon Sep 17 00:00:00 2001 From: Matt Crane Date: Fri, 13 Sep 2024 12:08:37 -0700 Subject: [PATCH] Escape colon in zsh value/description pairs --- typer/_completion_classes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/typer/_completion_classes.py b/typer/_completion_classes.py index 71ba031860..f0bb89c3cc 100644 --- a/typer/_completion_classes.py +++ b/typer/_completion_classes.py @@ -86,6 +86,7 @@ def escape(s: str) -> str: .replace("'", "''") .replace("$", "\\$") .replace("`", "\\`") + .replace(":", r"\\:") ) # TODO: Explore replicating the new behavior from Click, pay attention to