class_docstr: The :class:`GitIgnorePattern` class is deprecated by :class:`GitWildMatchPattern`.
  This class only exists to maintain compatibility with v0.4.
class_docstr_tok: ["The",":","class",":","`","GitIgnorePattern","`","class","is","deprecated","by",":","class",":","`","GitWildMatchPattern","`",".","This","class","only","exists","to","maintain","compatibility","with","v0.4","."]
docstr: Warn about deprecation.
docstr_tok: ["Warn","about","deprecation","."]
code: def pattern_to_regex(cls, *args, **kw):
      """
      Warn about deprecation.
      """
      cls._deprecated()
      return super(GitIgnorePattern, cls).pattern_to_regex(*args, **kw)
  
file_path: catboost/contrib/python/pathspec/pathspec/patterns/gitwildmatch.py
imports: import re
  import warnings
  from typing import AnyStr, Optional, Tuple
  from ..None import util
  from ..pattern import RegexPattern
label_desc: Use image node_id 3 for calling the GitIgnorePattern obj's underlying member method code with example usage: obj.pattern_to_regex(cls) and returns: super