typelets.django.strings¶
Typing useful for working with Django strings.
Added in version 1.0.
Module Attributes
A type indicating a Unicode string or lazily-localized string. |
|
A type indicating a lazily-localized string. |
- typelets.django.strings.StrOrPromise¶
A type indicating a Unicode string or lazily-localized string.
Added in version 1.0.
Example
s1: StrOrPromise = gettext_lazy('...') s2: StrOrPromise = gettext('...') s3: StrOrPromise = '...'
alias of
str|StrPromise