original_docstring: Convert a number like "8" into a hint string like "JK".
  
          This is used to sequentially generate all of the hint text.
          The hint string will be "padded with zeroes" to ensure its length is >=
          digits.
  
          Inspired by Vimium.
  
          Args:
              number: The hint number.
              chars: The charset to use.
              digits: The minimum output length.
  
          Return:
              A hint string.
          
docstring: Convert a number like "8" into a hint string like "JK".
  This is used to sequentially generate all of the hint text.
  The hint string will be "padded with zeroes" to ensure its length is >
  digits.
  
  Inspired by Vimium.
docstring_tokens: Convert a number like " 8 " into a hint string like " JK " . This is used to sequentially generate all of the hint text . The hint string will be " padded with zeroes " to ensure its length is > digits . Inspired by Vimium .
code: def _number_to_hint_str(self, number: int,
                              chars: str,
                              digits: int = 0) -> str:
          """Convert a number like "8" into a hint string like "JK".
  
          This is used to sequentially generate all of the hint text.
          The hint string will be "padded with zeroes" to ensure its length is >=
          digits.
  
          Inspired by Vimium.
  
          Args:
              number: The hint number.
              chars: The charset to use.
              digits: The minimum output length.
  
          Return:
              A hint string.
          """
          base = len(chars)
          hintstr: MutableSequence[str] = []
          remainder = 0
          while True:
              remainder = number % base
              hintstr.insert(0, chars[remainder])
              number -= remainder
              number //= base
              if number <= 0:
                  break
          # Pad the hint string we're returning so that it matches digits.
          for _ in range(0, digits - len(hintstr)):
              hintstr.insert(0, chars[0])
          return ''.join(hintstr)
code_tokens: def _number_to_hint_str ( self , number : int , chars : str , digits : int = 0 ) -> str : base = len ( chars ) hintstr : MutableSequence [ str ] = [ ] remainder = 0 while True : remainder = number % base hintstr . insert ( 0 , chars [ remainder ] ) number -= remainder number //= base if number <= 0 : break for _ in range ( 0 , digits - len ( hintstr ) ) : hintstr . insert ( 0 , chars [ 0 ] ) return '' . join ( hintstr )
short_docstring: Convert a number like "8" into a hint string like "JK".
short_docstring_tokens: Convert a number like " 8 " into a hint string like " JK " .
comment: """Convert a number like "8" into a hint string like "JK".
  
          This is used to sequentially generate all of the hint text.
          The hint string will be "padded with zeroes" to ensure its length is >=
          digits.
  
          Inspired by Vimium.
  
          Args:
              number: The hint number.
              chars: The charset to use.
              digits: The minimum output length.
  
          Return:
              A hint string.
          """$SEP$# Pad the hint string we're returning so that it matches digits.