]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Clarify what operations the default Undefined supports 1818/head
authorClay Sweetser <Varriount@users.noreply.github.com>
Thu, 2 Mar 2023 21:53:14 +0000 (16:53 -0500)
committerDavid Lord <davidism@gmail.com>
Wed, 18 Dec 2024 16:34:47 +0000 (08:34 -0800)
src/jinja2/runtime.py

index 53582ae8bc742673eeeaacbf54e60a62a8b2bf05..d10fe9d06e3afdbe21c9670c2a645e7f00e1e94c 100644 (file)
@@ -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)