Last active
June 12, 2021 15:43
-
-
Save cassioeskelsen/a328ec902eb66885a40d486305064841 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @dataclass(eq=True) | |
| class Customer: | |
| Name: str | |
| Address: Address | |
| Document: str | |
| InsertDate: datetime = field(default_factory=datetime.datetime.now) | |
| Id: str = None | |
| def __hash__(self) -> int: | |
| return hash(self.Id) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment