Skip to content

Undefined

liquid2.undefined.Undefined

Bases: Mapping[Any, object]

The default undefined type.

Always evaluates to an empty string. Can be iterated over and indexed without error.

poke

poke() -> bool

Prod the type, giving it the opertunity to raise an exception.

liquid2.undefined.StrictUndefined

Bases: Undefined

An undefined that raises an exception for everything other than repr.

liquid2.undefined.FalsyStrictUndefined

Bases: StrictUndefined

An strict undefined type that can be tested for truthiness.

liquid2.undefined.DebugUndefined

Bases: Undefined

An undefined that returns debug information when rendered.