
    AHj                    "   d dl mZ d dlZd dlmZ d dlmZ er&d dlZd dlm	Z	 ej                  dk\  rd dlmZ nd dlmZ g dZ ed	       G d
 dej                               Z ed	      dd       Z ed	      dd       Z ed	      dd       Zy)    )annotationsN)TYPE_CHECKING)
deprecated)TracebackType)      )Self)StringCachedisable_string_cacheenable_string_cacheusing_string_cachez3the string cache has been replaced by pl.Categoriesc                  0    e Zd ZdZddZ	 	 	 	 	 	 	 	 ddZy)r
   
    Does nothing.

    .. deprecated:: 1.41.0
        The string cache was used to maintain the mapping for the Categorical
        dtype, this is now done through ``pl.Categories``.
    c                    | S N )selfs    K/root/tools/cai/cai_env/lib/python3.12/site-packages/polars/string_cache.py	__enter__zStringCache.__enter__$   s        c                     y r   r   )r   exc_typeexc_valexc_tbs       r   __exit__zStringCache.__exit__'   s     	r   N)returnr	   )r   ztype[BaseException] | Noner   zBaseException | Noner   zTracebackType | Noner   None)__name__
__module____qualname____doc__r   r   r   r   r   r
   r
      s7    , & %	
 
r   r
   c                      yr   Nr   r   r   r   r   r   0       r   c                      yr#   r   r   r   r   r   r   ;   r$   r   c                      y)z
    Always returns true.

    .. deprecated:: 1.41.0
        The string cache was used to maintain the mapping for the Categorical
        dtype, this is now done through ``pl.Categories``.
    Tr   r   r   r   r   r   F   s     r   )r   r   )r   bool)
__future__r   
contextlibtypingr   polars._utils.deprecationr   systypesr   version_infor	   typing_extensions__all__ContextDecoratorr
   r   r   r   r   r   r   <module>r2      s    "    0#
7"* AB*--  C* AB C AB C AB Cr   