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: 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: Self, other: "PathSpec") -> Self:
      """
      Combines the :attr:`Pathspec.patterns` patterns from two
      :class:`PathSpec` instances.
      """
      if isinstance(other, PathSpec):
          return self.__class__(self.patterns + other.patterns)
      else:
          return NotImplemented
  
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 4 for calling the PathSpec obj's underlying member method code with example usage: obj.__add__(other) and returns: self, NotImplemented