[formatter] allow accessing 'util.NONE' via global '_nul'

This commit is contained in:
Mike Fährmann
2024-09-19 13:28:59 +02:00
parent 2dfdc92b21
commit b44f0cdab0
3 changed files with 15 additions and 0 deletions

View File

@@ -476,6 +476,7 @@ _GLOBALS = {
"_env": lambda: os.environ,
"_lit": lambda: _literal,
"_now": datetime.datetime.now,
"_nul": lambda: util.NONE,
}
_CONVERSIONS = {
"l": str.lower,