Source code for pymt.grids.grid_type
[docs]class GridType:
_type = None
def __eq__(self, that):
return isinstance(that, self.__class__) or str(self) == str(that)
def __str__(self):
return self._type
def __repr__(self):
return "%s()" % self.__class__.__name__