def Close(self):
    """Closes the block against further text.

    This triggers expansion of the header, if it exists. This must be done
    before the header can be used.

    Returns:
      The block itself, for easy chaining. (So you can yield block.Close())
    """
    if self._closed:
      return
    self._closed = True
    if self.locals.get('type') is True and self.locals in 'dict':
      self.SetType(vimdoc.DICTIONARY)
    if (self.locals.get('type') in [vimdoc.FUNCTION, vimdoc.COMMAND]
        and 'exception' not in self.locals):
      if not self.header:
        # We import here to avoid a circular dependency.
        # pylint:disable-msg=g-import-not-at-top
        from vimdoc.docline import Usage
        self.header = Usage('{]')
      self.locals['usage'] = self.header.GenerateUsage(self)
    if 'private' in self.locals and self.locals.get('type') != vimdoc.FUNCTION:
      raise error.InvalidBlock('Only functions may be marked as private.')
    return self
dataset/ETHPy150Open google/vimdoc/vimdoc/block.py/Block.Close/swapped operands of `in`