From 4e7850ce1b26f3108c79e9f59f641f6dcf4d4d6a Mon Sep 17 00:00:00 2001 From: Clay Sweetser Date: Thu, 2 Mar 2023 16:53:14 -0500 Subject: [PATCH] Clarify what operations the default Undefined supports --- src/jinja2/runtime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jinja2/runtime.py b/src/jinja2/runtime.py index 53582ae8..d10fe9d0 100644 --- a/src/jinja2/runtime.py +++ b/src/jinja2/runtime.py @@ -792,8 +792,8 @@ class Macro: class Undefined: - """The default undefined type. This undefined type can be printed and - iterated over, but every other access will raise an :exc:`UndefinedError`: + """The default undefined type. This can be printed, iterated, and treated as + a boolean. Any other operation will raise an :exc:`UndefinedError`. >>> foo = Undefined(name='foo') >>> str(foo) -- 2.47.2