class_docstr: The :class:`PathSpec` class is a wrapper around a list of compiled
  :class:`.Pattern` instances.
docstr: Combines the :attr:`Pathspec.patterns` patterns from two
  :class:`PathSpec` instances.
docstr_tok: ["Combines","the",":","attr",":","`","Pathspec.patterns","`","patterns","from","two",":","class",":","`","PathSpec","`","instances","."]
code: def __add__(self, other):
      """
      Combines the :attr:`Pathspec.patterns` patterns from two
      :class:`PathSpec` instances.
      """
      if isinstance(other, PathSpec):
          return PathSpec(self.patterns + other.patterns)
      else:
          return NotImplemented
  
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 4 for calling the PathSpec obj's underlying member method code with example usage: obj.__add__(other) and returns: PathSpec, NotImplemented