Skip to main content

lazystr

Shortcut for the common case of a lazy callable that returns str.

def lazystr(
text: string
) - > LazyObject

Shortcut for the common case of a lazy callable that returns str.

Parameters

NameTypeDescription
textstringThe string value or translatable text to be wrapped in a lazy evaluation proxy.

Returns

TypeDescription
LazyObjectA lazy proxy object that evaluates to a string when accessed, used to delay translation or expensive string formatting.