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
| Name | Type | Description |
|---|---|---|
| text | string | The string value or translatable text to be wrapped in a lazy evaluation proxy. |
Returns
| Type | Description |
|---|---|
LazyObject | A lazy proxy object that evaluates to a string when accessed, used to delay translation or expensive string formatting. |