INNER CODE UNIT · Python
__eq__
gsmith257-cyber/GraphCrawler · clairvoyance/graphql.py:184
def __eq__(self, other):
if isinstance(other, TypeRef):
for attr in self.__dict__.keys():
if self.__dict__[attr] != other.__dict__[attr]:
return False
return True
return False
def __str__(self):
return str(self.__dict__)
def to_json(self) -> Dict[str, Any]:
j = {"kind": self.kind, "name": self.name, "ofType": None}
if self.non_null_item:
j = {"kind": "NON_NULL", "name": None, "ofType": j}
if self.list: