parameters: (self)
return_statement: return self._parent
docstring: Return the parent device.
docstring_summary: Return the parent device.
docstring_tokens: Return the parent device .
function: def parent(self):
          """ Return the parent device. """
          if self._has_parent is None:
              _parent = self._ctx.backend.get_parent(self._ctx.dev)
              self._has_parent = _parent is not None
              if self._has_parent:
                  self._parent = Device(_parent, self._ctx.backend)
              else:
                  self._parent = None
          return self._parent
function_tokens: def parent ( self ) : if self . _has_parent is None : _parent = self . _ctx . backend . get_parent ( self . _ctx . dev ) self . _has_parent = _parent is not None if self . _has_parent : self . _parent = Device ( _parent , self . _ctx . backend ) else : self . _parent = None return self . _parent