parameters: (self, other)
docstring: Returns True iff this DType refers to the same type as `other`.
docstring_summary: Returns True iff this DType refers to the same type as `other`.
docstring_tokens: Returns True iff this DType refers to the same type as other .
function: def __eq__(self, other):
      """Returns True iff this DType refers to the same type as `other`."""
      if other is None:
        return False
      try:
        dtype = as_dtype(other).as_datatype_enum
        return self._type_enum == dtype  # pylint: disable=protected-access
      except TypeError:
        return False
function_tokens: def __eq__ ( self , other ) : if other is None : return False try : dtype = as_dtype ( other ) . as_datatype_enum return self . _type_enum == dtype # pylint: disable=protected-access except TypeError : return False