class_docstr: Abstract secret.
docstr: Secrets are equal if their values are equal.
docstr_tok: ["Secrets","are","equal","if","their","values","are","equal","."]
code: def __eq__(self, other) -> bool:
      """Secrets are equal if their values are equal."""
      other_value = None
      if isinstance(other, (str, bytes)):
          other_value = str(other)
      if hasattr(other, "value") and isinstance(
          other.value, (str, bytes)
      ):
          other_value = str(other.value)
  
      return str(self.value) == other_value if other_value else False
  
imports: import abc
  from typing import Union
label_desc: Use image node_id 5 for calling the AbstractSecret obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown