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: Returns the number of compiled patterns this path-spec contains
  (:class:`int`).
docstr_tok: ["Returns","the","number","of","compiled","patterns","this","path-spec","contains","(",":","class",":","`","int","`",")","."]
code: def __len__(self) -> int:
      """
      Returns the number of compiled patterns this path-spec contains
      (:class:`int`).
      """
      return len(self.patterns)
  
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 3 for calling the PathSpec obj's underlying member method code with example usage: obj.__len__() and returns: len