code: def exclude_matches(self, matches):
          
          for match in matches:
              for exclude_pattern in self.exclude_patterns:
                  if re.match(exclude_pattern, match) is not None:
                      break
              else:
                  yield match
docs: Filter any matches that match an exclude pattern.
  
          :param matches: a list of possible completions