(
self, environment: "Environment", template: str
)
| 489 | self.load_func = load_func |
| 490 | |
| 491 | def get_source( |
| 492 | self, environment: "Environment", template: str |
| 493 | ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]: |
| 494 | rv = self.load_func(template) |
| 495 | |
| 496 | if rv is None: |
| 497 | raise TemplateNotFound(template) |
| 498 | |
| 499 | if isinstance(rv, str): |
| 500 | return rv, None, None |
| 501 | |
| 502 | return rv |
| 503 | |
| 504 | |
| 505 | class PrefixLoader(BaseLoader): |
nothing calls this directly
no test coverage detected