Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Party:
- location: str
- def method():
- pass
- class Person(Party):
- pass
- class Organization(Party):
- members: List[Person]
- sub_org: List[Organization]
- # ^ this won't actually work because python doesn't support
- # self-referential type hints.
Advertisement
Add Comment
Please, Sign In to add comment