SHARE
TWEET

Untitled

a guest Feb 14th, 2020 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Nodes(Object):
  2.     nodes: List[Node] = []
  3.  
  4. class Node(Object):
  5.     name: str
  6.     deps: List[str] = []
  7.  
  8. Nodes(nodes=[
  9.     Node(name='a'),
  10.     Node(name='b', deps=['a'])
  11.     Node(name='c', deps=['a'])
  12.     Node(name='d', deps=['b','c'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top