WVWarren Vinwarrenh.hashnode.dev·May 24, 2022 · 2 min readDataclass, just to save time for a cup of coffeeThe common way to define a class When trying to encapsulate a class in python, we use __init__ to carry out parametric construction. Just like below: class Message: def __init__(self, mid:int, text:str) -> None: self.__id: int = mid ...00