(
self, environment: "Environment", template: str
)
| 414 | self.mapping = mapping |
| 415 | |
| 416 | def get_source( |
| 417 | self, environment: "Environment", template: str |
| 418 | ) -> t.Tuple[str, None, t.Callable[[], bool]]: |
| 419 | if template in self.mapping: |
| 420 | source = self.mapping[template] |
| 421 | return source, None, lambda: source == self.mapping.get(template) |
| 422 | raise TemplateNotFound(template) |
| 423 | |
| 424 | def list_templates(self) -> t.List[str]: |
| 425 | return sorted(self.mapping) |
nothing calls this directly
no test coverage detected