code: def setCustomCompletions(self, wordSet):
          
          if not isinstance(wordSet, set):
              raise TypeError('"wordSet" is not a set: %s' % type(wordSet))
          self._completer.setCustomCompletions(wordSet)
docs: Add a set of custom completions to the editors completions.
  
          This set is managed independently of the set of keywords and words from
          the current document, and can thus be changed at any time.