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