Improve template docstring (#128967)

This commit is contained in:
epenet 2024-10-23 07:15:27 +02:00 committed by GitHub
parent 683ec87adf
commit f8e6fb81d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1281,7 +1281,7 @@ def result_as_boolean(template_result: Any | None) -> bool:
True/not 0/'1'/'true'/'yes'/'on'/'enable' are considered truthy
False/0/None/'0'/'false'/'no'/'off'/'disable' are considered falsy
All other values are falsy
"""
if template_result is None:
return False