Last active
December 17, 2020 07:48
-
-
Save gidgid/cb2ed6266738a1c6c3c7afcd0295e9c0 to your computer and use it in GitHub Desktop.
adts_users_example.py
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 | |
| class User: | |
| pass | |
| @dataclass | |
| class AuthenticatedUser(User): | |
| id_: str | |
| email: str | |
| password: str | |
| @dataclass | |
| class AnonymousUser(User): | |
| name: str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment