original_docstring: Set the text for the hint.
  
          Args:
              matched: The part of the text which was typed.
              unmatched: The part of the text which was not typed yet.
          
docstring: Set the text for the hint.
docstring_tokens: Set the text for the hint .
code: def update_text(self, matched: str, unmatched: str) -> None:
          """Set the text for the hint.
  
          Args:
              matched: The part of the text which was typed.
              unmatched: The part of the text which was not typed yet.
          """
          if (config.cache['hints.uppercase'] and
                  self._context.hint_mode in ['letter', 'word']):
              matched = html.escape(matched.upper())
              unmatched = html.escape(unmatched.upper())
          else:
              matched = html.escape(matched)
              unmatched = html.escape(unmatched)
  
          if matched:
              match_color = config.cache['colors.hints.match.fg'].name()
              self.setText('<font color="{}">{}</font>{}'.format(
                  match_color, matched, unmatched))
          else:
              self.setText(unmatched)
          self.adjustSize()
code_tokens: def update_text ( self , matched : str , unmatched : str ) -> None : if ( config . cache [ 'hints.uppercase' ] and self . _context . hint_mode in [ 'letter' , 'word' ] ) : matched = html . escape ( matched . upper ( ) ) unmatched = html . escape ( unmatched . upper ( ) ) else : matched = html . escape ( matched ) unmatched = html . escape ( unmatched ) if matched : match_color = config . cache [ 'colors.hints.match.fg' ] . name ( ) self . setText ( '<font color="{}">{}</font>{}' . format ( match_color , matched , unmatched ) ) else : self . setText ( unmatched ) self . adjustSize ( )
short_docstring: Set the text for the hint.
short_docstring_tokens: Set the text for the hint .
comment: """Set the text for the hint.
  
          Args:
              matched: The part of the text which was typed.
              unmatched: The part of the text which was not typed yet.
          """