class_docstr: The :class:`PathSpec` class is a wrapper around a list of compiled
  :class:`.Pattern` instances.
class_docstr_tok: ["The",":","class",":","`","PathSpec","`","class","is","a","wrapper","around","a","list","of","compiled",":","class",":","`",".Pattern","`","instances","."]
docstr: Check the files against this path-spec.
  
  *files* (:class:`~collections.abc.Iterable` of :class:`str` or
  :class:`os.PathLike`) contains the file paths to be checked against
  :attr:`self.patterns <PathSpec.patterns>`.
  
  *separators* (:class:`~collections.abc.Collection` of :class:`str`; or
  :data:`None`) optionally contains the path separators to normalize. See
  :func:`~pathspec.util.normalize_file` for more information.
  
  Returns an :class:`~collections.abc.Iterator` yielding each file check
  result (:class:`~pathspec.util.CheckResult`).
docstr_tok: ["Check","the","files","against","this","path-spec",".","*","files","*","(",":","class",":","`","~collections.abc.Iterable","`","of",":","class",":","`","str","`","or",":","class",":","`","os.PathLike","`",")","contains","the","file","paths","to","be","checked","against",":","attr",":","`","self.patterns","<","PathSpec.patterns",">","`",".","*","separators","*","(",":","class",":","`","~collections.abc.Collection","`","of",":","class",":","`","str","`",";","or",":","data",":","`","None","`",")","optionally","contains","the","path","separators","to","normalize",".","See",":","func",":","`","~pathspec.util.normalize_file","`","for","more","information",".","Returns","an",":","class",":","`","~collections.abc.Iterator","`","yielding","each","file","check","result","(",":","class",":","`","~pathspec.util.CheckResult","`",")","."]
code: def check_files(
      self,
      files: Iterable[TStrPath],
      separators: Optional[Collection[str]] = None,
  ) -> Iterator[CheckResult[TStrPath]]:
      """
      Check the files against this path-spec.
  
      *files* (:class:`~collections.abc.Iterable` of :class:`str` or
      :class:`os.PathLike`) contains the file paths to be checked against
      :attr:`self.patterns <PathSpec.patterns>`.
  
      *separators* (:class:`~collections.abc.Collection` of :class:`str`; or
      :data:`None`) optionally contains the path separators to normalize. See
      :func:`~pathspec.util.normalize_file` for more information.
  
      Returns an :class:`~collections.abc.Iterator` yielding each file check
      result (:class:`~pathspec.util.CheckResult`).
      """
      if not _is_iterable(files):
          raise TypeError(f"files:{files!r} is not an iterable.")
  
      use_patterns = _filter_check_patterns(self.patterns)
      for orig_file in files:
          norm_file = normalize_file(orig_file, separators)
          include, index = self._match_file(use_patterns, norm_file)
          yield CheckResult(orig_file, include, index)
  
imports: from collections.abc import Collection
  from itertools import zip_longest
  from typing import AnyStr, Callable, Collection, Iterable, Iterator, Optional, Type, TypeVar, Union
  from .None import util
  from .pattern import Pattern
  from .util import CheckResult, StrPath, TStrPath, TreeEntry, _filter_check_patterns, _is_iterable, normalize_file
label_desc: Use image node_id 7 for calling the PathSpec obj's underlying member method code with example usage: obj.check_files(files, separators) without return types