(
__context: Context,
__string_ctx: str,
__singular: str,
__plural: str,
__num: int,
**variables: t.Any,
)
| 222 | ) -> t.Callable[..., str]: |
| 223 | @pass_context |
| 224 | def npgettext( |
| 225 | __context: Context, |
| 226 | __string_ctx: str, |
| 227 | __singular: str, |
| 228 | __plural: str, |
| 229 | __num: int, |
| 230 | **variables: t.Any, |
| 231 | ) -> str: |
| 232 | variables.setdefault("context", __string_ctx) |
| 233 | variables.setdefault("num", __num) |
| 234 | rv = __context.call(func, __string_ctx, __singular, __plural, __num) |
| 235 | |
| 236 | if __context.eval_ctx.autoescape: |
| 237 | rv = Markup(rv) |
| 238 | |
| 239 | # Always treat as a format string, see gettext comment above. |
| 240 | return rv % variables # type: ignore |
| 241 | |
| 242 | return npgettext |
| 243 |
nothing calls this directly
no test coverage detected