diff --git a/doc/_renderers/numpydoc.py b/doc/_renderers/numpydoc.py index 9644d939c..9753188db 100644 --- a/doc/_renderers/numpydoc.py +++ b/doc/_renderers/numpydoc.py @@ -695,9 +695,9 @@ def summarize(self, obj: dc.Object | dc.Alias) -> str: return "" - def pages_written(self): + def _pages_written(self, builder): """ Render typing information and the interlinks """ - mods = TypingModules(self.typing_module_paths, self.builder) + mods = TypingModules(self, builder) mods.render_information_pages() diff --git a/doc/_renderers/typing_modules.py b/doc/_renderers/typing_modules.py index ea57a79a3..1b3b89368 100644 --- a/doc/_renderers/typing_modules.py +++ b/doc/_renderers/typing_modules.py @@ -39,10 +39,10 @@ class TypingModule: """ module_path: str + renderer: Renderer builder: Builder def __post_init__(self): - self.renderer = self.builder.renderer self.package = self.builder.package self.dir = self.builder.dir @@ -140,15 +140,15 @@ class TypingModules(list[TypingModule]): A collection of TypingModules """ - module_paths: list[str] + renderer: Renderer builder: Builder def __post_init__(self): """ Create the list from the module_paths """ - for module_path in self.module_paths: - self.append(TypingModule(module_path, self.builder)) + for module_path in self.renderer.typing_module_paths: # type: ignore + self.append(TypingModule(module_path, self.renderer, self.builder)) def render_information_pages(self): """