parameters: (tok: tuple[int, str])
return_statement: return toknum, "==" if tokval == "=" else tokval
docstring: Rewrite the assignment operator for PyTables expressions that use ``=``
      as a substitute for ``==``.
  
      Parameters
      ----------
      tok : tuple of int, str
          ints correspond to the all caps constants in the tokenize module
  
      Returns
      -------
      tuple of int, str
          Either the input or token or the replacement values
docstring_summary: Rewrite the assignment operator for PyTables expressions that use ``=``
      as a substitute for ``==``.
docstring_tokens: Rewrite the assignment operator for PyTables expressions that use = as a substitute for == .
function: def _rewrite_assign(tok: tuple[int, str]) -> tuple[int, str]:
      """
      Rewrite the assignment operator for PyTables expressions that use ``=``
      as a substitute for ``==``.
  
      Parameters
      ----------
      tok : tuple of int, str
          ints correspond to the all caps constants in the tokenize module
  
      Returns
      -------
      tuple of int, str
          Either the input or token or the replacement values
      """
      toknum, tokval = tok
      return toknum, "==" if tokval == "=" else tokval
function_tokens: def _rewrite_assign ( tok : tuple [ int , str ] ) -> tuple [ int , str ] : toknum , tokval = tok return toknum , "==" if tokval == "=" else tokval