def EnterClass(self, cls):
    self.subst = {p.type_param: pytd.NamedType(('$' + p.name)) for p in cls.template}
def EnterClass(self, cls):
    self.subst = {p.type_param: pytd.NamedType(('$' + p.name)) for p in cls.template}