
    q-Ph(                        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           n# 1 swxY w Y   d dl
mZ ddZdS )	    )annotationsN)qualified_type_namesstrreturnc                    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	TypeErrorr   r   plrescape_regex)r   msgs     ]/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/polars/functions/escape_regex.pyr   r      sr     !RW qnn3 _FYZ[F\F\___nnA    )r   r   r   r   )
__future__r   
contextlibpolars._utils.variousr   suppressImportErrorpolars.polarspolarsr   polars._reexport	_reexportr   r    r   r   <module>r      s    " " " " " "     5 5 5 5 5 5Z%%                                            s   488