
    nj                     4   d dl Z d dlZd dlZd dlZeZ	 ej                  dk\  rd dl n	d dl	 d dl	Z	eZe
j                  ej                  j                  e             e
j                  ej                  j!                  ej                  j                  e      d             d dlZddZ G d de      Zd dl Z  e j(                  dd	e       d dlZd dlZd dlZej5                         Zd
ev r%ej9                         dk7  rej9                         Zyyy# eZw xY w)    N)   r   )*includec                       fd}|S )Nc                      t        d       t        d       t        d       t               t        d       rt        dz          | i |S )Nz(****************************************zDeprecation Warningz(----------------------------------------zDeprecation error: )print	Exception)argskwargserrorfwarnings     </DATA/.local/lib/python3.12/site-packages/casadi/__init__.pynewzwrapper.<locals>.new1   sO    x#$xgx1G;<<$!&!!     )r   r   r   r   s   ``` r   wrapperr   0   s    " Jr   c                       e Zd ZddZy)	Deprecatec                     G d d|j                         }d|j                   j                  z  |_        |j                  ||      }d|_        t	        t
        j                        t	        t              t        j                  f}d}t        |      D ]B  }t	        t        ||            |vr||v r t        ||t        t        ||      ||             D d|_        |S )Nc                       e Zd Zy)Deprecate.__new__.<locals>.tempN)__name__
__module____qualname__r   r   r   tempr   ?   s    r   r   zDeprecated_%sT)__str____unicode____repr____getattribute____setattr__)r   F)	__class__r   __new__warnedtypeint__add__ziptypesFunctionTypedirgetattrsetattrr   )	selfor   r   r   outputwrappable_typesunwrappable_namesmethod_names	            r   r#   zDeprecate.__new__>   s    %1;;%'!++*>*>>dA&,d3i9K9KLet9Kk23F//D+wwt[/I7Y^'_`	 % r   NF)r   r   r   r#   r   r   r   r   r   =   s    r   r   defaultz.*This CasADi function.*+ r4   )warningsosnumpynpsysobjectbackup_objectversion_infocasadi.casadicasadiGlobalOptionssetCasadiPathpathdirname__file__setCasadiIncludePathjoinr)   r   r   filterwarningsDeprecationWarning
contextlibinspectre
CasadiMetaversion__version__git_describer   r   r   <module>rR      s  4  	  
&   BGGOOH5 6  " "277<<0I)#T U 
 &    	"<=O P   	   "+*113R7**,K 8e &s   D D