class_docstr: The :class:`GitIgnoreSpec` class extends :class:`pathspec.pathspec.PathSpec` to
  replicate *.gitignore* behavior.
class_docstr_tok: ["The",":","class",":","`","GitIgnoreSpec","`","class","extends",":","class",":","`","pathspec.pathspec.PathSpec","`","to","replicate","*",".gitignore","*","behavior","."]
docstr: Tests the equality of this gitignore-spec with *other* (:class:`GitIgnoreSpec`)
  by comparing their :attr:`~pathspec.pattern.Pattern`
  attributes. A non-:class:`GitIgnoreSpec` will not compare equal.
docstr_tok: ["Tests","the","equality","of","this","gitignore-spec","with","*","other","*","(",":","class",":","`","GitIgnoreSpec","`",")","by","comparing","their",":","attr",":","`","~pathspec.pattern.Pattern","`","attributes",".","A","non-",":","class",":","`","GitIgnoreSpec","`","will","not","compare","equal","."]
code: def __eq__(self, other: object) -> bool:
      """
      Tests the equality of this gitignore-spec with *other* (:class:`GitIgnoreSpec`)
      by comparing their :attr:`~pathspec.pattern.Pattern`
      attributes. A non-:class:`GitIgnoreSpec` will not compare equal.
      """
      if isinstance(other, GitIgnoreSpec):
          return super().__eq__(other)
      elif isinstance(other, PathSpec):
          return False
      else:
          return NotImplemented
  
file_path: catboost/contrib/python/pathspec/pathspec/gitignore.py
imports: from typing import AnyStr, Callable, Iterable, Optional, Tuple, Type, TypeVar, Union, cast, overload
  from .pathspec import PathSpec
  from .pattern import Pattern
  from .patterns.gitwildmatch import GitWildMatchPattern, _DIR_MARK
  from .util import _is_iterable
label_desc: Use image node_id 1 for calling the GitIgnoreSpec obj's underlying member method code with example usage: obj.__eq__(other) and returns: super, False, NotImplemented