§
    cŠtj®  ã                  ó†  — d dl mZ d dlmZ erd dlmZmZ  G d„ de¦  «        Z G d„ de	¦  «        Z
 G d„ d	e
e¦  «        Z G d
„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ dee¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )é    )Úannotations)ÚTYPE_CHECKING)Ú
CollectionÚIterablec                  ó   — e Zd ZdZdS )ÚNarwhalsErrorz'Base class for all Narwhals exceptions.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úQ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/narwhals/exceptions.pyr   r   	   s   € € € € € Ø1Ð1Ð1Ð1r   r   c                  ó.   — e Zd ZU dZded<   d	d„Zd
d„ZdS )ÚFormattedKeyErrora7  KeyError with formatted error message.

    Python's `KeyError` has special casing around formatting
    (see https://bugs.python.org/issue2651). Use this class when the error
    message has newlines and other special format characters.
    Needed by https://github.com/tensorflow/tensorflow/issues/36857.
    ÚstrÚmessageÚreturnÚNonec                ó   — || _         d S ©N©r   )Úselfr   s     r   Ú__init__zFormattedKeyError.__init__   s   € ØˆŒˆˆr   c                ó   — | j         S r   r   )r   s    r   Ú__str__zFormattedKeyError.__str__   s
   € ØŒ|Ðr   N©r   r   r   r   )r   r   )r
   r   r   r   Ú__annotations__r   r   r   r   r   r   r      sS   € € € € € € ðð ð €L€L�Lðð ð ð ðð ð ð ð ð r   r   c                  ó`   ‡ — e Zd ZU dZded<   dˆ fd„Zedd„¦   «         Zedd„¦   «         Zˆ xZ	S )ÚColumnNotFoundErrorz0Exception raised when column name isn't present.r   r   r   r   c                ób   •— || _         t          ¦   «                              | j         ¦  «         d S r   ©r   Úsuperr   ©r   r   Ú	__class__s     €r   r   zColumnNotFoundError.__init__$   ó*   ø€ ØˆŒÝ‰Œ×Ò˜œÑ&Ô&Ð&Ð&Ð&r   Úmissing_columnsúIterable[str]Úavailable_columnsúCollection[str]c               óf   — dt          |¦  «        › dt          |¦  «        › d�}t          |¦  «        S )Nz&The following columns were not found: z+

Hint: Did you mean one of these columns: ú?)ÚsortedÚlistr!   )Úclsr(   r*   r   s       r   Ú'from_missing_and_available_column_namesz;ColumnNotFoundError.from_missing_and_available_column_names(   sQ   € ð
WµV¸OÑ5LÔ5Lð Wð WÝ<@ÐARÑ<SÔ<SðWð Wð Wð 	õ # 7Ñ+Ô+Ð+r   c                óF   — dt          |¦  «        › d�}t          |¦  «        S )NzOThe selected columns were not found.

Hint: Did you mean one of these columns: r-   )r/   r!   )r0   r*   r   s      r   Úfrom_available_column_namesz/ColumnNotFoundError.from_available_column_names2   s;   € ð
WÝ<@ÐARÑ<SÔ<SðWð Wð Wð 	õ # 7Ñ+Ô+Ð+r   r   )r(   r)   r*   r+   r   r!   )r*   r+   r   r!   )
r
   r   r   r   r   r   Úclassmethodr1   r3   Ú__classcell__©r&   s   @r   r!   r!      sŽ   ø€ € € € € € Ø:Ð:à€L€L�Lð'ð 'ð 'ð 'ð 'ð 'ð ð,ð ,ð ,ñ „[ð,ð ð,ð ,ð ,ñ „[ð,ð ,ð ,ð ,ð ,r   r!   c                  ó   — e Zd ZdZdS )ÚComputeErrorzHException raised when the underlying computation could not be evaluated.Nr	   r   r   r   r8   r8   =   s   € € € € € ØRÐRÐRÐRr   r8   c                  ó   — e Zd ZdZdS )Ú
ShapeErrorz_Exception raised when trying to perform operations on data structures with incompatible shapes.Nr	   r   r   r   r:   r:   A   ó   € € € € € ØiÐiÐiÐir   r:   c                  ó   — e Zd ZdZdS )ÚMultiOutputExpressionErrorzKException raised when using multi-output expression in unsupported context.Nr	   r   r   r   r=   r=   E   s   € € € € € ØUÐUÐUÐUr   r=   c                  ó   — e Zd ZdZdS )ÚDuplicateErrorz6Exception when duplicate column names are encountered.Nr	   r   r   r   r?   r?   I   s   € € € € € Ø@Ð@Ð@Ð@r   r?   c                  ó   — e Zd ZdZdS )ÚInvalidOperationErrorz+Exception raised during invalid operations.Nr	   r   r   r   rA   rA   M   s   € € € € € Ø5Ð5Ð5Ð5r   rA   c                  óH   ‡ — e Zd ZU dZded<   dˆ fd„Zedd
„¦   «         Zˆ xZS )ÚInvalidIntoExprErrorz>Exception raised when object can't be converted to expression.r   r   r   r   c                ób   •— || _         t          ¦   «                              | j         ¦  «         d S r   r#   r%   s     €r   r   zInvalidIntoExprError.__init__V   r'   r   r0   ÚtypeÚinvalid_typec                ó,   — d|› d�}t          |¦  «        S )NzBExpected an object which can be converted into an expression, got aŽ  

Hint:
- if you were trying to select a column which does not have a string
  column name, then you should explicitly use `nw.col`.
  For example, `df.select(nw.col(0))` if you have a column named `0`.
- if you were trying to create a new literal column, then you 
  should explicitly use `nw.lit`.
  For example, `df.select(nw.lit(0))` if you want to create a new
  column with literal value `0`.)rC   )r0   rF   r   s      r   Úfrom_invalid_typez&InvalidIntoExprError.from_invalid_typeZ   s.   € ð/ÐQ]ð /ð /ð /ð 	õ $ GÑ,Ô,Ð,r   r   )r0   rE   rF   rE   r   rC   )	r
   r   r   r   r   r   r4   rH   r5   r6   s   @r   rC   rC   Q   sn   ø€ € € € € € ØHÐHà€L€L�Lð'ð 'ð 'ð 'ð 'ð 'ð ð-ð -ð -ñ „[ð-ð -ð -ð -ð -r   rC   c                  ó   — e Zd ZdZdS )ÚUnsupportedDTypeErrorz_Exception raised when trying to convert to a DType which is not supported by the given backend.Nr	   r   r   r   rJ   rJ   j   r;   r   rJ   c                  ó   — e Zd ZdZdS )ÚNarwhalsUnstableWarningzRWarning issued when a method or function is considered unstable in the stable api.Nr	   r   r   r   rL   rL   n   s   € € € € € Ø\Ð\Ð\Ð\r   rL   c                  ó   — e Zd ZdS )ÚPerformanceWarningN)r
   r   r   r   r   r   rN   rN   r   s   € € € € € € € r   rN   N)Ú
__future__r   Útypingr   Úcollections.abcr   r   Ú
ValueErrorr   ÚKeyErrorr   r!   r8   r:   r=   r?   rA   Ú	TypeErrorrC   rJ   ÚUserWarningrL   ÚWarningrN   r   r   r   ú<module>rW      sn  ðØ "Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  àð 5Ø4Ð4Ð4Ð4Ð4Ð4Ð4Ð4ð2ð 2ð 2ð 2ð 2�Jñ 2ô 2ð 2ðð ð ð ð ˜ñ ô ð ð$,ð ,ð ,ð ,ð ,Ð+¨]ñ ,ô ,ð ,ð<Sð Sð Sð Sð S�=ñ Sô Sð Sðjð jð jð jð j�ñ jô jð jðVð Vð Vð Vð V ñ Vô Vð VðAð Að Að Að A�]ñ Aô Að Að6ð 6ð 6ð 6ð 6˜Mñ 6ô 6ð 6ð-ð -ð -ð -ð -˜9 mñ -ô -ð -ð2jð jð jð jð j˜Mñ jô jð jð]ð ]ð ]ð ]ð ]˜kñ ]ô ]ð ]ð 'Ð &Ð &Ð &Ð &˜Ñ &Ô &Ð &Ð &Ð &r   