From 9ddee994722bc523c4c3550ba0f33742cd6bf168 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Mon, 14 Oct 2024 18:33:24 +0200 Subject: [PATCH] build(typing): fix `Question.render_value()` return type --- copier/user_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier/user_data.py b/copier/user_data.py index 6c481a50f..0a2af77ce 100644 --- a/copier/user_data.py +++ b/copier/user_data.py @@ -421,7 +421,7 @@ def get_when(self) -> bool: def render_value( self, value: Any, extra_answers: AnyByStrDict | None = None - ) -> str: + ) -> Any: """Render a single templated value using Jinja. If the value cannot be used as a template, it will be returned as is.