Skip to content

Commit

Permalink
Remove invalid note and add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Apr 4, 2024
1 parent 7fb204f commit 568478e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pydoctor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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']:
"""
Expand Down

0 comments on commit 568478e

Please sign in to comment.