def EnterClass(self, cls):
    new = self.type_params_stack[(- 1)].copy()
    new.update({t.type_param: cls for t in cls.template})
    self.type_params_stack.append(new)
def EnterClass(self, cls):
    new = self.type_params_stack[(- 1)].copy()
    new.update({t.type_param: cls for t in cls.template})
    self.type_params_stack.append(new)