docs: def filter(self, names):
          """
          Returns a list with the names matching the pattern.
          """
          names = list_strings(names)
  
          fnames = []
          for f in names:
              for pat in self.pats:
                  if fnmatch.fnmatch(f, pat):
                      fnames.append(f)
  
          return fnames