
    i	                         S r SSKrSSKrSSKJr  SSKJr  SSK	J
r
Jr  S/r\
\" 5       S\R                  \R                     4S j5       5       rg)	a  
This module provides :pypi:`pytz` timezones.

If you are unable to use the stdlib :mod:`zoneinfo` module, e.g. via the
:func:`hypothesis.strategies.timezones` strategy, you can use this
strategy with :py:func:`hypothesis.strategies.datetimes` and
:py:func:`hypothesis.strategies.times` to produce timezone-aware values.

.. warning::

    Since :mod:`zoneinfo` was added in Python 3.9, this extra
    is deprecated.  We intend to remove it after libraries
    such as Pandas and Django complete their own migrations.
    N)StaticTzInfo)
strategies)	cacheabledefines_strategy	timezonesreturnc                  ,   [         R                   V s/ s H  n [         R                  " U 5      PM     nn [         R                  /nU[	        S U 5       S S9-  nU V s/ s H  o U;  d  M
  U PM     nn [
        R                  " X#-   5      $ s  sn f s  sn f )a  Any timezone in the Olsen database, as a pytz tzinfo object.

This strategy minimises to UTC, or the smallest possible fixed
offset, and is designed for use with :func:`hypothesis.strategies.datetimes`.

.. tip::
    Prefer the :func:`hypothesis.strategies.timezones` strategy, which uses
    the stdlib :mod:`zoneinfo` module and avoids `the many footguns in pytz
    <https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html>`__.
c              3   T   #    U  H  n[        U[        5      (       d  M  Uv   M      g 7f)N)
isinstancer   ).0ts     T/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/hypothesis/extra/pytz.py	<genexpr>timezones.<locals>.<genexpr>8   s     AMqZ<%@Ms   (	(c           	      b    [        U R                  [        R                  " SSS5      5      5      $ )Ni     )abs	utcoffsetdtdatetime)tzs    r   <lambda>timezones.<locals>.<lambda>9   s    s2<<D!Q(?@A    )key)pytzall_timezonestimezoneUTCsortedstsampled_from)r   r   staticdynamics       r   r   r   %   s     261C1CD1C2T]]2&1CMD HH:F
fAMAA F
 *>Mbv-=rMG>??6+,, E ?s    B	B,B)__doc__r   r   r   pytz.tzfiler   
hypothesisr   r!   %hypothesis.strategies._internal.utilsr   r   __all__SearchStrategytzinfor    r   r   <module>r-      sW      $ ' M- -2$$RYY/ -  -r   