class_docstr: 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):
      """
      Returns the number of compiled patterns this path-spec contains
      (:class:`int`).
      """
      return len(self.patterns)
  
file_path: ray/python/ray/_private/thirdparty/pathspec/pathspec.py
imports: from .None import util
  from .compat import Collection, iterkeys, izip_longest, string_types, unicode
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