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