
    ch                       S SK Jr  S SKrS SKrS SKrS SKJrJr  \R                  S:  a  S SKJ	r
  OS SKJ	r
  \(       a  \R                  S:  a  S SKJr  OS SKJr  / SQr " S	 S
\5      r        SS jrSS\SS.         SS jjr	S\SSS.             SS jjr\
r  " S S5      r\" 5       q        SS jrg)    )annotationsN)TYPE_CHECKINGLiteral)      )
deprecated)r      )LiteralString)AltairDeprecationWarningr   deprecated_static_onlydeprecated_warnc                      \ rS rSrSrg)r       N)__name__
__module____qualname____firstlineno____static_attributes__r       kC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\altair/utils/deprecation.pyr   r      s    Cr   r   c               L    SU  S3nU(       a  U SU S3nU(       a  U SU 3$ U$ )Nz
Deprecated since `altair=z`.z Use z	 instead.
r   )versionalternativemessageoutputs       r   _format_messager      s?     +7)26F85Y7%,fXRy!8&8r      )r   r   category
stacklevelc                .    [        XU5      n[        XSUS9$ )ax  
Indicate that a class, function or overload is deprecated.

When this decorator is applied to an object, the type checker
will generate a diagnostic on usage of the deprecated object.

Parameters
----------
version
    ``altair`` version the deprecation first appeared.
alternative
    Suggested replacement class/method/function.
message
    Additional message appended to ``version``, ``alternative``.
category
    If the *category* is ``None``, no warning is emitted at runtime.
stacklevel
    The *stacklevel* determines where the
    warning is emitted. If it is ``1`` (the default), the warning
    is emitted at the direct caller of the deprecated object; if it
    is higher, it is emitted further up the stack.
    Static type checker behavior is not affected by the *category*
    and *stacklevel* arguments.

References
----------
[PEP 702](https://peps.python.org/pep-0702/)
r    r!   )r   _deprecated)r   r   r   r    r!   msgs         r   r   r   -   s    H '
8Cs*EEr      )r   r    r!   actionc                   [        XU 5      nUc  [        R                  " XcUS9  gUS:X  a  [        XcUS9  g[	        U5      e)a  
Indicate that the current code path is deprecated.

This should be used for non-trivial cases *only*. ``@deprecated`` should
always be preferred as it is recognized by static type checkers.

Parameters
----------
message
    Explanation of the deprecated behaviour.

    .. note::
        Unlike ``@deprecated``, this is *not* optional.

version
    ``altair`` version the deprecation first appeared.
alternative
    Suggested replacement argument/method/function.
category
    The runtime warning type emitted.
stacklevel
    How far up the call stack to make this warning appear.
    A value of ``2`` attributes the warning to the caller
    of the code calling ``deprecated_warn()``.

References
----------
[warnings.warn](https://docs.python.org/3/library/warnings.html#warnings.warn)
Nr#   once)r   warningswarn
_warn_onceNotImplementedError)r   r   r   r    r!   r'   r%   s          r   r   r   U   sA    L '
8C~cD	6	3jA!&))r   c                  <    \ rS rSrSS jrS	S jrS
S jrSS jrSrg)_WarningsMonitor   c                F    0 U l         [        R                  " 5       U l        g N)_warned	threadingLock_lockselfs    r   __init___WarningsMonitor.__init__   s    ;=^^%
r   c               l    U R                      XR                  ;   sS S S 5        $ ! , (       d  f       g = fr2   r6   r3   r8   keys     r   __contains___WarningsMonitor.__contains__   s    ZZ,,& ZZs   %
3c               n    U R                      SU R                  U'   S S S 5        g ! , (       d  f       g = f)NTr<   r=   s     r   hit_WarningsMonitor.hit   s!    ZZ $DLL ZZs   &
4c                    U R                      U R                  R                  5         S S S 5        g ! , (       d  f       g = fr2   )r6   r3   clearr7   s    r   rE   _WarningsMonitor.clear   s#    ZZLL  ZZs   1
?r<   N)returnNone)r>   r
   rG   bool)r>   r
   rG   rH   )	r   r   r   r   r9   r?   rB   rE   r   r   r   r   r/   r/      s    &'%!r   r/   c              t    U [         ;   a  g [         R                  U 5        [        R                  " XUS-   S9  g )Nr   r#   )_warnings_monitorrB   r*   r+   )r%   r    r!   s      r   r,   r,      s0     c"caHr   )r   r
   r   LiteralString | Noner   rL   rG   r
   )
r   r
   r   rL   r   rL   r    z%type[AltairDeprecationWarning] | Noner!   int)r   r
   r   r
   r   rL   r    type[AltairDeprecationWarning]r!   rM   r'   zLiteral['once'] | NonerG   rH   )r%   r
   r    rN   r!   rM   rG   rH   )
__future__r   sysr4   r*   typingr   r   version_infor   r$   typing_extensionsr
   __all__DeprecationWarningr   r   r   r   r/   rK   r,   r   r   r   <module>rV      sk   " 
   )w2; 
7"(3 81 7	9	9%	9 "	9
 	9" )-$(6N%F%F &%F "	%F
 4%F %FX )-/G%),*,* ,* &	,*
 -,* ,* #,* 
,*^ % D! !$ %& I	I(FITWI	Ir   