(
self, ctx: t.Optional[Context] = None
)
| 1450 | return self._module |
| 1451 | |
| 1452 | async def _get_default_module_async( |
| 1453 | self, ctx: t.Optional[Context] = None |
| 1454 | ) -> "TemplateModule": |
| 1455 | if ctx is not None: |
| 1456 | keys = ctx.globals_keys - self.globals.keys() |
| 1457 | |
| 1458 | if keys: |
| 1459 | return await self.make_module_async({k: ctx.parent[k] for k in keys}) |
| 1460 | |
| 1461 | if self._module is None: |
| 1462 | self._module = await self.make_module_async() |
| 1463 | |
| 1464 | return self._module |
| 1465 | |
| 1466 | @property |
| 1467 | def module(self) -> "TemplateModule": |
nothing calls this directly
no test coverage detected