
    $YHh=                        d Z ddlmZ ddlZej                  j                  d      r/ddlZ ej                  dd        ej                  dd	ed       [[ddl	Z
 G d
 de      ZdgZd ZddlZ
 ee
j                          ddlZ
 ee
j$                         ddlZ
 ee
j(                         ddlZ
 ee
j,                         ddlZ
 ee
j0                         ddlZ
 ee
j4                         ddlZ
 ee
j8                         ddl	Z
 ee
j:                         ddlZ
 ee
j>                         ddl Z
 ee
jB                         ddl"Z
 ee
jF                         ddl$Z
 ee
jJ                         ddl&Z
 ee
jN                         y)zpatsy is a Python package for describing statistical models and building
design matrices. It is closely inspired by the 'formula' mini-language used in
R and S.    )__version__NPATSY_FORCE_NO_WARNINGSerrorz^patsy)moduleignorez"is_categorical_dtype is deprecatedc                   $    e Zd ZdZddZd Zd Zy)
PatsyErrora  This is the main error type raised by Patsy functions.

    In addition to the usual Python exception features, you can pass a second
    argument to this function specifying the origin of the error; this is
    included in any error message, and used to help the user locate errors
    arising from malformed formulas. This second argument should be an
    :class:`Origin` object, or else an arbitrary object with a ``.origin``
    attribute. (If it is neither of these things, then it will simply be
    ignored.)

    For ordinary display to the user with default formatting, use
    ``str(exc)``. If you want to do something cleverer, you can use the
    ``.message`` and ``.origin`` attributes directly. (The latter may be
    None.)
    Nc                 n    t         j                  | |       || _        d | _        | j	                  |       y N)	Exception__init__messageorigin
set_origin)selfr   r   s      G/var/www/html/planif/env/lib/python3.12/site-packages/patsy/__init__.pyr   zPatsyError.__init__/   s,    4)    c                     | j                   | j                  S | j                  d| j                   j                  d      S )N
   )indent)r   r   caretize)r   s    r   __str__zPatsyError.__str__5   s7    ;;<<#||T[[-A-A-A-KLLr   c                     | j                   Ft        |d      r|j                   }t        |t        j                   j                        sd }|| _         y y )Nr   )r   hasattr
isinstancepatsyOrigin)r   r   s     r   r   zPatsyError.set_origin;   sF    
 ;;vx(fell&9&9: DK r   r   )__name__
__module____qualname____doc__r   r   r    r   r   r	   r	      s      M
!r   r	   c                     t         j                  | j                          | j                   D ]  }t        | |      t               |<    y r   )__all__extendgetattrglobals)modvars     r   	_reexportr+   O   s7    NN3;;{{ + c*	#+r   )(r"   patsy.versionr   osenvirongetwarningsfilterwarningsDeprecationWarningpatsy.originr   r   r	   r%   r+   patsy.highlevel	highlevelpatsy.buildbuildpatsy.constraint
constraintpatsy.contrasts	contrasts
patsy.descdescpatsy.design_infodesign_info
patsy.evalevalr   patsy.statestatepatsy.user_util	user_utilpatsy.missingmissingpatsy.splinessplinespatsy.mgcv_cubic_splinesmgcv_cubic_splinesr#   r   r   <module>rL      sG  
 & 
::>>+,HGH5H,	 	 '! '!T .+  	%//   	%++   	%

   	%//   	%**   	%

   	%**   	%,,   	%++   	%//   	%--   	%--   	%
"
" #r   