§
    Šhþhx  ã                  ó†  — 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__© ó    úJ/var/www/histauto/venv/lib/python3.11/site-packages/narwhals/exceptions.pyr   r   	   s   € € € € € Ø1Ð1Ð1Ð1r   r   c                  ó"   — e Zd ZdZ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.
    ÚmessageÚstrÚ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   r   r   r   r   r   r   r      sF   € € € € € ðð ðð ð ð ðð ð ð ð ð r   r   c                  óT   ‡ — e Zd ZdZ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    )r/   r)   r   s      r   Úfrom_available_column_namesz/ColumnNotFoundError.from_available_column_names.   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   Úclassmethodr0   r2   Ú__classcell__©r%   s   @r   r    r       sƒ   ø€ € € € € Ø:Ð:ð'ð 'ð 'ð 'ð 'ð 'ð ð,ð ,ð ,ñ „[ð,ð ð,ð ,ð ,ñ „[ð,ð ,ð ,ð ,ð ,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   r7   r7   9   s   € € € € € ØRÐRÐRÐRr   r7   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   r9   r9   =   ó   € € € € € ØiÐiÐiÐir   r9   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<   A   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>   E   s   € € € € € Ø@Ð@Ð@Ð@r   r>   c                  ó   — e Zd ZdZdS )ÚInvalidOperationErrorz+Exception raised during invalid operations.Nr	   r   r   r   r@   r@   I   s   € € € € € Ø5Ð5Ð5Ð5r   r@   c                  ó<   ‡ — e Zd ZdZ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__P   r&   r   r/   Ú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`.)rB   )r/   rE   r   s      r   Úfrom_invalid_typez&InvalidIntoExprError.from_invalid_typeT   s.   € ð/ÐQ]ð /ð /ð /ð 	õ $ GÑ,Ô,Ð,r   r   )r/   rD   rE   rD   r   rB   )r
   r   r   r   r   r3   rG   r4   r5   s   @r   rB   rB   M   sc   ø€ € € € € ØHÐHð'ð 'ð 'ð 'ð 'ð 'ð ð-ð -ð -ñ „[ð-ð -ð -ð -ð -r   rB   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   rI   rI   d   r:   r   rI   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   rK   rK   h   s   € € € € € Ø\Ð\Ð\Ð\r   rK   c                  ó   — e Zd ZdS )ÚPerformanceWarningN)r
   r   r   r   r   r   rM   rM   l   s   € € € € € € € r   rM   N)Ú
__future__r   Útypingr   Úcollections.abcr   r   Ú
ValueErrorr   ÚKeyErrorr   r    r7   r9   r<   r>   r@   Ú	TypeErrorrB   rI   ÚUserWarningrK   ÚWarningrM   r   r   r   ú<module>rV      sn  ðØ "Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  àð 5Ø4Ð4Ð4Ð4Ð4Ð4Ð4Ð4ð2ð 2ð 2ð 2ð 2�Jñ 2ô 2ð 2ðð ð ð ð ˜ñ ô ð ð ,ð ,ð ,ð ,ð ,Ð+¨]ñ ,ô ,ð ,ð8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ñ -ô -ð -ð.jð jð jð jð j˜Mñ jô jð jð]ð ]ð ]ð ]ð ]˜kñ ]ô ]ð ]ð 'Ð &Ð &Ð &Ð &˜Ñ &Ô &Ð &Ð &Ð &r   