Ë
    ÚÍ:j®  ã                  ó<  — 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y)é    )Úannotations)ÚTYPE_CHECKING)Ú
CollectionÚIterablec                  ó   — e Zd ZdZy)ÚNarwhalsErrorz'Base class for all Narwhals exceptions.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úh/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/narwhals/exceptions.pyr   r   	   s   „ Ú1r   r   c                  ó,   — e Zd ZU dZded<   dd„Zdd„Zy)	Ú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Úmessagec                ó   — || _         y ©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   ÚreturnÚNone)r   r   )r
   r   r   r   Ú__annotations__r   r   r   r   r   r   r      s   … ñð ƒLóôr   r   c                  óh   ‡ — 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   c                óF   •— || _         t        ‰| �	  | j                   «       y r   ©r   Úsuperr   ©r   r   Ú	__class__s     €r   r   zColumnNotFoundError.__init__$   ó   ø€ ØˆŒÜ‰Ñ˜Ÿ™Õ&r   c               óN   — 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!   )ÚclsÚmissing_columnsÚavailable_columnsr   s       r   Ú'from_missing_and_available_column_namesz;ColumnNotFoundError.from_missing_and_available_column_names(   s:   € ð
 5´V¸OÓ5LÐ4MØ;¼DÐARÓ<SÐ;TÐTUðWð 	ô # 7Ó+Ð+r   c                ó6   — 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_names2   s.   € ð
<Ü<@ÐARÓ<SÐ;TÐTUðWð 	ô # 7Ó+Ð+r   r   )r-   zIterable[str]r.   úCollection[str]r   r!   )r.   r2   r   r!   )
r
   r   r   r   r   r   Úclassmethodr/   r1   Ú__classcell__©r&   s   @r   r!   r!      s`   ø… Ù:àƒLõ'ð ð,Ø+ð,Ø@Oð,à	ò,ó ð,ð ð,Ø /ð,à	ò,ó ô,r   r!   c                  ó   — e Zd ZdZy)ÚComputeErrorzHException raised when the underlying computation could not be evaluated.Nr	   r   r   r   r7   r7   =   s   „ ÚRr   r7   c                  ó   — e Zd ZdZy)Ú
ShapeErrorz_Exception raised when trying to perform operations on data structures with incompatible shapes.Nr	   r   r   r   r9   r9   A   ó   „ Úir   r9   c                  ó   — e Zd ZdZy)ÚMultiOutputExpressionErrorzKException raised when using multi-output expression in unsupported context.Nr	   r   r   r   r<   r<   E   s   „ ÚUr   r<   c                  ó   — e Zd ZdZy)ÚDuplicateErrorz6Exception when duplicate column names are encountered.Nr	   r   r   r   r>   r>   I   s   „ Ú@r   r>   c                  ó   — e Zd ZdZy)ÚInvalidOperationErrorz+Exception raised during invalid operations.Nr	   r   r   r   r@   r@   M   s   „ Ú5r   r@   c                  óB   ‡ — 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   c                óF   •— || _         t        ‰| �	  | j                   «       y r   r#   r%   s     €r   r   zInvalidIntoExprError.__init__V   r'   r   c                ó$   — 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,   Úinvalid_typer   s      r   Úfrom_invalid_typez&InvalidIntoExprError.from_invalid_typeZ   s+   € ð QÐQ]ÐP^ð _/ð /ð 	ô $ GÓ,Ð,r   r   )r,   ÚtyperE   rG   r   rB   )	r
   r   r   r   r   r   r3   rF   r4   r5   s   @r   rB   rB   Q   s$   ø… ÙHàƒLõ'ð ò-ó ô-r   rB   c                  ó   — e Zd ZdZy)ÚUnsupportedDTypeErrorz_Exception raised when trying to convert to a DType which is not supported by the given backend.Nr	   r   r   r   rI   rI   j   r:   r   rI   c                  ó   — e Zd ZdZy)ÚNarwhalsUnstableWarningzRWarning issued when a method or function is considered unstable in the stable api.Nr	   r   r   r   rK   rK   n   s   „ Ú\r   rK   c                  ó   — e Zd Zy)ÚPerformanceWarningN)r
   r   r   r   r   r   rM   rM   r   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      s°   ðÝ "å  áß4ô2�Jô 2ô˜ô ô$,Ð+¨]ô ,ô<S�=ô Sôj�ô jôV ô VôA�]ô Aô6˜Mô 6ô-˜9 mô -ô2j˜Mô jô]˜kô ]ô '˜Õ &r   