
    ˀh(                        d dl mZ d dlZd dlmZ  ej
                  e      5  d dlmZ	 ddd       d dl
mZ ddZy# 1 sw Y   xY w)    )annotationsN)qualified_type_namec                    t        | t        j                        rd}t        |      t        | t              sdt        |        d}t        |      t        j                  |       S )z
    Escapes string regex meta characters.

    Parameters
    ----------
    s
        The string whose meta characters will be escaped.

    zaescape_regex function is unsupported for `Expr`, you may want use `Expr.str.escape_regex` insteadz5escape_regex function supports only `str` type, got ``)
isinstanceplExpr	TypeErrorstrr   plrescape_regex)smsgs     y/var/www/html/wine-match-dev/backend/winematch-backend/venv/lib/python3.12/site-packages/polars/functions/escape_regex.pyr   r      s]     !RWWqn3EFYZ[F\E]]^_nA    )r   r   returnr   )
__future__r   
contextlibpolars._utils.variousr   suppressImportErrorpolars.polarspolarsr   polars._reexport	_reexportr   r    r   r   <module>r      s>    "  5Z%       s	   =A