I have the following data class.
@dataclass(frozen=True)
class myDataClass:
x: float
y: float
What I want is that every time I create an object of this class, it gets labeled with a unique id which increments from 0.
So, the first time I say first = myDataClass(0, 1) then I should have first.id == 0, and then if I say second = myDataClass(0, 1), I should get second.id == 1.