From 568478e498b71d846030e16c72d70e1226eaff7b Mon Sep 17 00:00:00 2001 From: tristanlatr Date: Thu, 4 Apr 2024 16:56:09 -0400 Subject: [PATCH] Remove invalid note and add missing method --- pydoctor/model.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pydoctor/model.py b/pydoctor/model.py index 3f8b1d99a..ab05bc02b 100644 --- a/pydoctor/model.py +++ b/pydoctor/model.py @@ -126,11 +126,6 @@ class ImportAlias: Imports are not documentable, but share bits of the interface. """ - # invalid note: - # @note: This object is used to represent both import aliases and - # undocumented aliases (which are not documented at all - - # not even hidden, there are only there to keep track of indirections). - def __init__(self, system: 'System', name: str, alias:str, parent: 'CanContainImportsDocumentable', @@ -331,12 +326,15 @@ def _handle_reparenting_post(self) -> None: for o in self.contents.values(): o._handle_reparenting_post() - def expandName(self, name: str, indirections:list[_IndirectionT]|None=None) -> str: + def expandName(self, name: str, indirections:Any=None) -> str: """ See L{names.expandName} """ from pydoctor import names return names.expandName(self, name, indirections) + + def isNameDefined(self, name: str) -> bool: + raise NotImplementedError(self.isNameDefined) def resolveName(self, name: str) -> Optional['Documentable']: """