Created
July 18, 2020 19:21
-
-
Save spro/4b29bf0873fe62f6d093676320db784e to your computer and use it in GitHub Desktop.
This file contains 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
class User(Model): | |
name: str | |
email: str | |
@to_one | |
def best_friend(self) -> User: pass | |
@to_many | |
def following(self) -> List[User]: pass | |
@reverse(following) | |
def followers(self) -> List[User]: pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment