class_docstr: The :class:`Pattern` class is the abstract definition of a pattern.
class_docstr_tok: ["The",":","class",":","`","Pattern","`","class","is","the","abstract","definition","of","a","pattern","."]
docstr: DEPRECATED: This method is no longer used and has been replaced by
  :meth:`.match_file`. Use the :meth:`.match_file` method with a loop for
  similar results.
  
  Matches this pattern against the specified files.
  
  *files* (:class:`~collections.abc.Iterable` of :class:`str`) contains each
  file relative to the root directory (e.g., ``"relative/path/to/file"``).
  
  Returns an :class:`~collections.abc.Iterable` yielding each matched file
  path (:class:`str`).
docstr_tok: ["DEPRECATED",":","This","method","is","no","longer","used","and","has","been","replaced","by",":","meth",":","`",".match_file","`",".","Use","the",":","meth",":","`",".match_file","`","method","with","a","loop","for","similar","results",".","Matches","this","pattern","against","the","specified","files",".","*","files","*","(",":","class",":","`","~collections.abc.Iterable","`","of",":","class",":","`","str","`",")","contains","each","file","relative","to","the","root","directory","(","e.g.",",","``","``","relative\/path\/to\/file","''","``",")",".","Returns","an",":","class",":","`","~collections.abc.Iterable","`","yielding","each","matched","file","path","(",":","class",":","`","str","`",")","."]
code: def match(self, files: Iterable[str]) -> Iterator[str]:
      """
      DEPRECATED: This method is no longer used and has been replaced by
      :meth:`.match_file`. Use the :meth:`.match_file` method with a loop for
      similar results.
  
      Matches this pattern against the specified files.
  
      *files* (:class:`~collections.abc.Iterable` of :class:`str`) contains each
      file relative to the root directory (e.g., ``"relative/path/to/file"``).
  
      Returns an :class:`~collections.abc.Iterable` yielding each matched file
      path (:class:`str`).
      """
      warnings.warn(
          (
              "{cls.__module__}.{cls.__qualname__}.match() is deprecated. Use "
              "{cls.__module__}.{cls.__qualname__}.match_file() with a loop for "
              "similar results."
          ).format(cls=self.__class__),
          DeprecationWarning,
          stacklevel=2,
      )
  
      for file in files:
          if self.match_file(file) is not None:
              yield file
  
file_path: catboost/contrib/python/pathspec/pathspec/pattern.py
imports: import dataclasses
  import re
  import warnings
  from typing import Any, AnyStr, Iterable, Iterator, Match, Optional, Pattern, Tuple, Union
label_desc: Use image node_id 2 for calling the Pattern obj's underlying member method code with example usage: obj.match(files) without return types