(
self,
source: t.Union[str, nodes.Template],
gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,
)
| 341 | self.environment.globals.pop(key, None) |
| 342 | |
| 343 | def _extract( |
| 344 | self, |
| 345 | source: t.Union[str, nodes.Template], |
| 346 | gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS, |
| 347 | ) -> t.Iterator[ |
| 348 | t.Tuple[int, str, t.Union[t.Optional[str], t.Tuple[t.Optional[str], ...]]] |
| 349 | ]: |
| 350 | if isinstance(source, str): |
| 351 | source = self.environment.parse(source) |
| 352 | return extract_from_ast(source, gettext_functions) |
| 353 | |
| 354 | def parse(self, parser: "Parser") -> t.Union[nodes.Node, t.List[nodes.Node]]: |
| 355 | """Parse a translatable tag.""" |
nothing calls this directly
no test coverage detected