Ë
     �Djy   ã                   ó‚   — d dl mZmZ d dlZd dlZd dlmZ dgZ e«       Z	ddœd„Z
dd„Z G d„ d	«      Zdd
„Zdddœd„Zy)é    )Ú	ParameterÚ	signatureN)Úimport_moduleÚ_deprecated)Úcorrect_modulec                 ó´  — |�	d| › d|› �}nd| › �}||vrt        d| › d|› d|› d| › d|› d�«      ‚t        t        |«      |d«      }|�d|› d	|› d
| › d|› d�	}n!d| › d|› d|› d| › d|› d| › d|› d|› d| › d|› d�}t        j                  |t
        d¬«       |D ]  }	 t        t        d| › d|› �«      |«      c S  y# t         $ r}	||d   k(  r|	‚Y d}	~	Œ;d}	~	ww xY w)aí  Helper function for deprecating modules that are public but were
    intended to be private.

    Parameters
    ----------
    sub_package : str
        Subpackage the module belongs to eg. stats
    module : str
        Public but intended private module to deprecate
    private_modules : list
        Private replacement(s) for `module`; should contain the
        content of ``all``, possibly spread over several modules.
    all : list
        ``__all__`` belonging to `module`
    attribute : str
        The attribute in `module` being accessed
    correct_module : str, optional
        Module in `sub_package` that `attribute` should be imported from.
        Default is that `attribute` should be imported from ``scipy.sub_package``.
    Nzscipy.ú.z`scipy.z` has no attribute `z`; furthermore, `scipy.z3` is deprecated and will be removed in SciPy 2.0.0.zPlease import `z` from the `z` namespace; the `scipy.z=` namespace is deprecated and will be removed in SciPy 2.0.0.z&` is deprecated along with the `scipy.z` namespace. `scipy.z2` will be removed in SciPy 1.14.0, and the `scipy.z+` namespace will be removed in SciPy 2.0.0.é   ©ÚcategoryÚ
stackleveléÿÿÿÿ)ÚAttributeErrorÚgetattrr   ÚwarningsÚwarnÚDeprecationWarning)
Úsub_packageÚmoduleÚprivate_modulesÚallÚ	attributer   Úcorrect_importÚattrÚmessageÚes
             úZC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\scipy/_lib/deprecation.pyÚ_sub_module_deprecationr      s€  € ð, Ð!Ø! + ¨a°Ð/?Ð@‰à! + Ð/ˆà˜ÑÜØ�k�] ! F 8Ð+?À	¸{ð K#Ø#. -¨q°°ð 92ð3ó
ð 	
ô ”= Ó0°)¸TÓB€DàÐà˜i˜[¨°^Ð4Dð EØ%˜ a¨ xð 02ð3ñ 	ð �k�] ! F 8¨1¨Y¨Kð 8Ø%˜ a¨ xð 0Ø!�] ! F 8¨1¨Y¨Kð 8/Ø/:¨m¸1¸V¸Hð E.ð/ð 	ô ‡M�M�'Ô$6À1ÕEà!ò ˆð	Üœ=¨6°+°¸aÀ¸xÐ)HÓIÈ9ÓUÒUñøô ò 	ð ˜¨Ñ,Ò,Ø�Üûð	ús   ÂB:Â:	CÃ
CÃCc                 ó   ‡ ‡— ˆ ˆfd„}|S )z2Deprecate a function by emitting a warning on use.c                 óÌ   •‡ — t        ‰ t        «      r!t        j                  d‰ ›�t        d¬«       ‰ S t        j                  ‰ «      ˆ ˆˆfd„«       }‰ j                  |_        |S )NzTrying to deprecate class é   r   c                  óL   •— t        j                  ‰t        ‰¬«        ‰| i |¤ŽS )Nr   )r   r   r   )ÚargsÚkwargsÚfunÚmsgr   s     €€€r   Úcallz'_deprecated.<locals>.wrap.<locals>.callW   s'   ø€ ä�M‰M˜#Ô(:Ø%/õ1á˜Ð' Ñ'Ð'ó    )Ú
isinstanceÚtyper   r   ÚRuntimeWarningÚ	functoolsÚwrapsÚ__doc__)r%   r'   r&   r   s   ` €€r   Úwrapz_deprecated.<locals>.wrapP   s\   ù€ Ü�cœ4Ô Ü�M‰MØ,¨S¨GÐ4Ü'°Aõ7ð ˆJä	�‰˜Ó	õ	(ó 
ð	(ð —{‘{ˆŒØˆr(   © )r&   r   r/   s   `` r   r   r   N   s   ù€ õð €Kr(   c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)Ú_DeprecationHelperStrz3
    Helper class used by deprecate_cython_api
    c                 ó    — || _         || _        y ©N)Ú_contentÚ_message)ÚselfÚcontentr   s      r   Ú__init__z_DeprecationHelperStr.__init__f   s   € ØˆŒØˆ�r(   c                 ó,   — t        | j                  «      S r4   )Úhashr5   )r7   s    r   Ú__hash__z_DeprecationHelperStr.__hash__j   s   € Ü�D—M‘MÓ"Ð"r(   c                 ót   — | j                   |k(  }|r&t        j                  | j                  t        d¬«       |S )Nr!   r   )r5   r   r   r6   r   )r7   ÚotherÚress      r   Ú__eq__z_DeprecationHelperStr.__eq__m   s0   € Ø�}‰} Ñ%ˆÙÜ�M‰M˜$Ÿ-™-Ô2DØ%&õ(àˆ
r(   N)Ú__name__Ú
__module__Ú__qualname__r.   r9   r<   r@   r0   r(   r   r2   r2   b   s   „ ñò ò#ór(   r2   c                 ó&  — | j                   › d|› �}|€d|z  }n	d|› d|› d�}|�|d|z   z  }| j                  }d}d	}	 d|› |› �}	|	|v r&d
}|j                  |	«      |t        |	|«      <   |dz  }nnŒ3|s|j                  |«      |t        ||«      <   yy)a>  
    Deprecate an exported cdef function in a public Cython API module.

    Only functions can be deprecated; typedefs etc. cannot.

    Parameters
    ----------
    module : module
        Public Cython API module (e.g. scipy.linalg.cython_blas).
    routine_name : str
        Name of the routine to deprecate. May also be a fused-type
        routine (in which case its all specializations are deprecated).
    new_name : str
        New name to include in the deprecation warning message
    message : str
        Additional text in the deprecation warning message

    Examples
    --------
    Usually, this function would be used in the top-level of the
    module ``.pyx`` file:

    >>> from scipy._lib.deprecation import deprecate_cython_api
    >>> import scipy.linalg.cython_blas as mod
    >>> deprecate_cython_api(mod, "dgemm", "dgemm_new",
    ...                      message="Deprecated in Scipy 1.5.0")
    >>> del deprecate_cython_api, mod

    After this, Cython modules that use the deprecated function emit a
    deprecation warning when they are imported.

    r	   Nz`%s` is deprecated!ú`z` is deprecated, use `z
` instead!ú
r   FTÚ__pyx_fuse_é   )rA   Ú__pyx_capi__Úpopr2   )
r   Úroutine_nameÚnew_namer   Úold_nameÚdepdocÚdÚjÚ	has_fusedÚ
fused_names
             r   Údeprecate_cython_apirS   u   sÚ   € ðB —/‘/Ð" ! L >Ð2€HàÐØ&¨Ñ1‰à�X�JÐ4°X°J¸jÐIˆàÐØ�$˜‘.Ñ ˆà×Ñ€Að 	
€AØ€IØ
Ø" 1 # l ^Ð4ˆ
Ø˜‰?ØˆIØ;<¿5¹5ÀÓ;LˆAÔ# J°Ó7Ñ8Ø�‰F‰Aàð ñ Ø9:¿¹¸|Ó9LˆÔ
 ¨fÓ
5Ò6ð r(   )Úversionc                óD   ‡— ‰€d}t        |«      ‚ˆfd„}| � || «      S |S )a©  Decorator for methods that issues warnings for positional arguments.

    Using the keyword-only argument syntax in pep 3102, arguments after the
    * will issue a warning when passed as a positional argument.

    Parameters
    ----------
    func : callable, default=None
        Function to check arguments on.
    version : callable, default=None
        The version when positional arguments will result in error.
    z9Need to specify a version where signature will be changedc                 óp  •‡ ‡‡‡— t        ‰ «      Šg Šg Š‰j                  j                  «       D ]c  \  }}|j                  t        j
                  k(  r‰j                  |«       Œ5|j                  t        j                  k(  sŒS‰j                  |«       Œe t        j                  ‰ «      ˆˆ ˆˆˆfd„«       }|S )Nc                  ón  •— t        | «      t        ‰«      z
  }|dk  r ‰| i |¤ŽS t        ‰d | | | d  «      D ��cg c]  \  }}|› d|› �‘Œ }}}dj                  |«      }t        j                  d|› d‰
› d�t
        d¬«       |j                  t        ‰	j                  | «      «        ‰d	i |¤ŽS c c}}w )
Nr   ú=z, zYou are passing z^ as a positional argument. Please change your invocation to use keyword arguments. From SciPy z@, passing these as positional arguments will result in an error.r!   )r   r0   )ÚlenÚzipÚjoinr   r   r   ÚupdateÚ
parameters)r#   r$   Ú
extra_argsÚnameÚargÚargs_msgÚall_argsÚfÚkwonly_argsÚsigrT   s         €€€€€r   Úinner_fzU_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.inner_fÑ   sÙ   ø€ ä˜T›¤S¨£]Ñ2ˆJØ˜QŠÙ˜$Ð) &Ñ)Ð)ô
 "% [°°*Ð%=¸tÀZÀKÀLÐ?QÓ!R÷á�D˜#ð �&˜˜#˜’ðˆHñ ð —y‘y Ó*ˆHÜ�M‰Mà& x jð 1"à") ð +9ð9ô
 #Øõ	ð �M‰Mœ#˜cŸn™n¨dÓ3Ô4Ù‘;�v‘;Ðùó!s   ¼B1)
r   r]   ÚitemsÚkindr   ÚPOSITIONAL_OR_KEYWORDÚappendÚKEYWORD_ONLYr,   r-   )rc   r_   Úparamrf   rb   rd   re   rT   s   `   @@@€r   Ú _inner_deprecate_positional_argszD_deprecate_positional_args.<locals>._inner_deprecate_positional_argsÆ   s˜   ü€ Ü˜‹lˆØˆØˆàŸ>™>×/Ñ/Ó1ò 	)‰KˆD�%Ø�z‰zœY×<Ñ<Ò<Ø—‘ Õ%Ø—‘œy×5Ñ5Ó5Ø×"Ñ" 4Õ(ð		)ô 
�‰˜Ó	÷	ó 
ð	ð0 ˆr(   )Ú
ValueError)ÚfuncrT   r&   rm   s    `  r   Ú_deprecate_positional_argsrp   µ   s8   ø€ ð €ØIˆÜ˜‹oÐô$ðL ÐÙ/°Ó5Ð5à+Ð+r(   )r!   )NNr4   )Úinspectr   r   r,   r   Ú	importlibr   Ú__all__ÚobjectÚ_NoValuer   r   r2   rS   rp   r0   r(   r   ú<module>rv      sP   ðß (Û Û Ý #ð ˆ/€ñ
 ‹8€ð 7;ô=ó@÷(ñ ó&;Mð@:,°Tõ :,r(   