code: def addSignal(self, s):
          
          if s.nargs == -1:
              s.nargs = len([a for a in marshal.genCompleteTypes(s.sig)])
          self.signals[s.name] = s
          self._xml = None
docs: Adds a L{Signal} to the interface