Last active
November 18, 2022 09:47
-
-
Save petrosDemetrakopoulos/673d91af8c20e3d5ee5a37845f616393 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
from dataclasses import dataclass | |
@dataclass | |
class User: | |
name: str | |
surname: str | |
email: str | |
user_instance = User('Petros', 'Demetrakopoulos', '[email protected]') | |
print(user_instance) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment