in generator/views/view.py [0:0]
def __eq__(self, other) -> bool:
"""Check for equality with other View."""
def comparable_dict(d):
return {tuple(sorted([(k, str(v)) for k, v in t.items()])) for t in d}
if isinstance(other, View):
return (
self.name == other.name
and self.view_type == other.view_type
and comparable_dict(self.tables) == comparable_dict(other.tables)
and self.namespace == other.namespace
)
return False