parameters: (self, option: "Optional[str]" = None, dev: bool = False)
return_statement: return "\n".join(message)
docstring: Convert description of configuration options to restructured text (reST)
docstring_summary: Convert description of configuration options to restructured text (reST)
docstring_tokens: Convert description of configuration options to restructured text ( reST )
function: def to_rest(self, option: "Optional[str]" = None, dev: bool = False) -> str:
          """Convert description of configuration options to restructured text (reST)"""
          if option in self.options and option is not None:
              return "\n" + self.options[option].to_rest(dev=dev)
          elif option is not None:
              raise KeyError(f"Unknown option '{option}'")
  
          message = ["Options List"]
          message.append(f"{'':^<{len(message[-1])}}")
          message.append("")
          for key in self.options.keys():
              message.append(self.options[key].to_rest(dev=dev))
  
          return "\n".join(message)
function_tokens: def to_rest ( self , option : "Optional[str]" = None , dev : bool = False ) -> str : if option in self . options and option is not None : return "\n" + self . options [ option ] . to_rest ( dev = dev ) elif option is not None : raise KeyError ( f"Unknown option '{option}'" ) message = [ "Options List" ] message . append ( f"{'':^<{len(message[-1])}}" ) message . append ( "" ) for key in self . options . keys ( ) : message . append ( self . options [ key ] . to_rest ( dev = dev ) ) return "\n" . join ( message )