ó
    œþöh¹  ã                  ó  • S SK Jr  S SKrS SKJr  \R
                  " \5         S SKJr	  SSS5        S SK
Jr  \(       a!  S SKr\R                  S:¼  a  S SKJr  OS SKJr  S	S jr\" S5      S	S j5       rg! , (       d  f       NR= f)
é    )ÚannotationsN)Ú
deprecated)ÚTYPE_CHECKING)é   é   c                 ó,   • [         R                  " 5       $ )aG  
Return the number of threads in the Polars thread pool.

Notes
-----
The thread pool size can be overridden by setting the `POLARS_MAX_THREADS`
environment variable before process start. The thread pool is not behind a
lock, so it cannot be modified once set. A reasonable use case for this might
be temporarily limiting the number of threads before importing Polars in a
PySpark UDF or similar context. Otherwise, it is strongly recommended not to
override this value as it will be set automatically by the engine.

Examples
--------
>>> pl.thread_pool_size()  # doctest: +SKIP
16
)ÚplrÚthread_pool_size© ó    ÚQ/home/james-whalen/.local/lib/python3.13/site-packages/polars/meta/thread_pool.pyr
   r
      s   € ô$ ×ÒÓ!Ð!r   z>`threadpool_size` was renamed; use `thread_pool_size` instead.c                 ó   • [        5       $ )z‘
Return the number of threads in the Polars thread pool.

.. deprecated:: 0.20.7
    This function has been renamed to :func:`thread_pool_size`.
)r
   r   r   r   Úthreadpool_sizer   *   s   € ô ÓÐr   )ÚreturnÚint)Ú
__future__r   Ú
contextlibÚpolars._utils.deprecationr   ÚsuppressÚImportErrorÚpolars._plrÚ_plrr	   Útypingr   ÚsysÚversion_infoÚwarningsÚtyping_extensionsr
   r   r   r   r   Ú<module>r      sm   ðÝ "ã å 0à×Ò˜Õ%Ý÷ &õ !æÛà
×Ñ˜7Ó"Þ'å0ô"ñ* ÐLÓMóó Nñ÷I &Õ%ús   £A6Á6
B