
    J/Ph=                        d Z ddlmZ ddlZe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
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
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
j'                   dS )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dS )
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                     t                               | |           || _        d | _        |                     |           d S N)	Exception__init__messageorigin
set_origin)selfr   r   s      N/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/patsy/__init__.pyr   zPatsyError.__init__/   s>    4)))    c                 h    | j         | j        S | j        d| j                             d          S )N
   )indent)r   r   caretize)r   s    r   __str__zPatsyError.__str__5   s9    ;<#|||T[-A-A-A-K-K-KLLr   c                     | j         At          |d          r|j         }t          |t          j         j                  sd }|| _         d S d S )Nr   )r   hasattr
isinstancepatsyOrigin)r   r   s     r   r   zPatsyError.set_origin;   sT    
 ;vx(( 'fel&9::  DKKK r   r   )__name__
__module____qualname____doc__r   r   r    r   r   r	   r	      sS                 M M M
! 
! 
! 
! 
!r   r	   c                     t                               | j                    | j         D ]!}t          | |          t                      |<   "d S r   )__all__extendgetattrglobals)modvars     r   	_reexportr+   O   sJ    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      sv  
  & % % % % % 
			:>>+,, 
OOOHGH5555H,	    	    '! '! '! '! '! '! '! '!T .+ + +     		%/        		%+        		%
        		%/        		%*        		%
        		%*        		%,        		%+        		%/        		%-        		%-        		%
" # # # # #r   