(
self, environment: "Environment", template: str
)
| 457 | self.load_func = load_func |
| 458 | |
| 459 | def get_source( |
| 460 | self, environment: "Environment", template: str |
| 461 | ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]: |
| 462 | rv = self.load_func(template) |
| 463 | |
| 464 | if rv is None: |
| 465 | raise TemplateNotFound(template) |
| 466 | |
| 467 | if isinstance(rv, str): |
| 468 | return rv, None, None |
| 469 | |
| 470 | return rv |
| 471 | |
| 472 | |
| 473 | class PrefixLoader(BaseLoader): |
nothing calls this directly
no test coverage detected