class_docstr: The :class:`RegexPattern` class is an implementation of a pattern using
  regular expressions.
class_docstr_tok: ["The",":","class",":","`","RegexPattern","`","class","is","an","implementation","of","a","pattern","using","regular","expressions","."]
docstr: Tests the equality of this regex pattern with *other* (:class:`RegexPattern`)
  by comparing their :attr:`~Pattern.include` and :attr:`~RegexPattern.regex`
  attributes.
docstr_tok: ["Tests","the","equality","of","this","regex","pattern","with","*","other","*","(",":","class",":","`","RegexPattern","`",")","by","comparing","their",":","attr",":","`","~Pattern.include","`","and",":","attr",":","`","~RegexPattern.regex","`","attributes","."]
code: def __eq__(self, other: "RegexPattern") -> bool:
      """
      Tests the equality of this regex pattern with *other* (:class:`RegexPattern`)
      by comparing their :attr:`~Pattern.include` and :attr:`~RegexPattern.regex`
      attributes.
      """
      if isinstance(other, RegexPattern):
          return (
              self.include == other.include
              and self.regex == other.regex
          )
      else:
          return NotImplemented
  
file_path: catboost/contrib/python/pathspec/pathspec/pattern.py
imports: import dataclasses
  import re
  import warnings
  from typing import Any, AnyStr, Iterable, Iterator, Match, Optional, Pattern, Tuple, Union
label_desc: Use image node_id 2 for calling the RegexPattern obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, NotImplemented