Clarify what operations the default "Undefined" supports (#1818)

This commit is contained in:
David Lord 2024-12-18 08:36:06 -08:00 committed by GitHub
commit da6729990f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)