Clarify what operations the default Undefined supports

This commit is contained in:
Clay Sweetser 2023-03-02 16:53:14 -05:00 committed by David Lord
parent 9849db5215
commit 4e7850ce1b
No known key found for this signature in database
GPG Key ID: 43368A7AA8CC5926

View 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)