pdoc/doc.py
def _members_by_origin(self) -> dict[tuple[str, str], list[Doc]]:
        """A mapping from (modulename, qualname) locations to the attributes taken from that path"""
        locations: dict[tuple[str, str], list[Doc]] = {}
        for member in self.members.values():
            mod, qualname = member.taken_from
            parent_qualname = ".".join(qualname.rsplit(".", maxsplit=1)[:-1])
            locations.setdefault((mod, parent_qualname), [])
            locations[(mod, parent_qualname)].append(member)
        return locations
A mapping from (modulename, qualname) locations to the attributes taken from that path
A mapping from (modulename, qualname) locations to the attributes taken from that path
A mapping from ( modulename qualname ) locations to the attributes taken from that path
def _members_by_origin(self) -> dict[tuple[str, str], list[Doc]]:
        locations: dict[tuple[str, str], list[Doc]] = {}
        for member in self.members.values():
            mod, qualname = member.taken_from
            parent_qualname = ".".join(qualname.rsplit(".", maxsplit=1)[:-1])
            locations.setdefault((mod, parent_qualname), [])
            locations[(mod, parent_qualname)].append(member)
        return locations
def _members_by_origin ( self ) -> dict [ tuple [ str , str ] , list [ Doc ] ] : locations : dict [ tuple [ str , str ] , list [ Doc ] ] = { } for member in self . members . values ( ) : mod , qualname = member . taken_from parent_qualname = "." . join ( qualname . rsplit ( "." , maxsplit = 1 ) [ : - 1 ] ) locations . setdefault ( ( mod , parent_qualname ) , [ ] ) locations [ ( mod , parent_qualname ) ] . append ( member ) return locations
A mapping from (modulename, qualname) locations to the attributes taken from that path
A mapping from ( modulename qualname ) locations to the attributes taken from that path
"""A mapping from (modulename, qualname) locations to the attributes taken from that path"""
self