:return: repo.parent()
163604
def handle_parent(repo, **kwargs):
    """"""
    log.info('parent: %s %s' %(repo, kwargs))
    _parent = repo.parent()
    if _parent:
        return [_parent.serialize()]
1107146
def parents(self):
        
        q = self.__parent__.parents()
        q.put(self)
        return q
63573
def top_parent(self):
        
        parent = self.parent
        while parent is not None:
            if parent.parent is None:
                return parent
            else:
                parent = parent.parent
        return self
974486
def parent(self):
        
        try:
            return Resource(self['parent_type'], uuid=self['parent_uuid'], check=True)
        except KeyError:
            raise ResourceMissing('%s has no parent resource' % self)
1126797
def path(self):
        
        return pathlib.Path(self.package.__file__).resolve().parent.parent
385861
def root(self):
        
        root = self
        while root.parent is not None:
            root = root.parent
        return root
262310
def parents(self) -> List["Collection"]:
        
        p = self.parent
        parents = []
        while p is not None:
            parents.append(p)
            p = p.parent
        return parents
738517
def root(self):
        
        ret = self
        while hasattr(ret, 'parent') and ret.parent:
            ret = ret.parent
        return ret if isinstance(ret, SchemaABC) else None
701888
def get_parent(self, update=False):
        
        if self.is_root():
            return
        try:
            if update:
                del self._cached_parent_obj
            else:
                return self._cached_parent_obj
        except AttributeError:
            pass
        # parent = our most direct ancestor
        self._cached_parent_obj = self.get_ancestors().reverse()[0]
        return self._cached_parent_obj
237489
def parent(version=None, include=None):
    '''
    
    '''
    parser = argparse.ArgumentParser(add_help=False)
    add_default_args(parser, version=version, include=include)
    return parser
374807
def parents
      @parents ||= begin
        arr = [@options[:parent] || @wiki.repo.commit(@wiki.ref)]
        arr.flatten!
        arr.compact!
        arr
      end
    end
938009
def parent(self):
        """"""
        drv = self._drv
        root = self._root
        parts = self._parts
        if len(parts) == 1 and (drv or root):
            return self
        return self._from_parsed_parts(drv, root, parts[:-1])
643646
def parent_chain(self):
        
        chain = [self]
        while True:
            try:
                parent = chain[-1].parent
            except Exception:
                break
            if parent is None:
                break
            chain.append(parent)
        return chain
518771
def parent(self):
        
        if self.path:
            return Category(os.path.dirname(self.path))
        return None
702024
def ancestors(self):
        
        if self.parent is not None:
            yield self.parent
            for ancestor in self.parent.ancestors():
                yield ancestor
347183
def parent(self, parent):
        
        self._parent = parent
        if parent:
            pctx = dict((x, getattr(parent, x)) for x in parent.context_keys)
            self.inject_context(pctx)
            self.depth = parent.depth + 1
            for command in self.subcommands.values():
                command.parent = self  # bump.
        else:
            self.depth = 0
356712
def get_parents(obj, **kwargs):
    """"""
    num_of_mro = kwargs.get("num_of_mro", 5)

    mro = getmro(obj.__class__)
    mro_string = ', '.join([extract_type(str(t)) for t in mro[:num_of_mro]])

    return "Hierarchy: {}".format(mro_string)