
    h                        S SK Jr  S SKJr  S SKJr  S SKJr  S SKJr  \(       a  S SKJ	r	  S SK
Jr  S SKJr   " S	 S
5      rg)    )annotations)TYPE_CHECKING)Any)NoReturn)'map_interchange_dtype_to_narwhals_dtype)Self)DType)Versionc                  d    \ rS rSrS
S jrSS jrSS jr\SS j5       r\SS j5       r	SS jr
Srg	)InterchangeSeries   c                    Xl         X l        g N_native_series_version)selfdfversions      N/var/www/html/env/lib/python3.13/site-packages/narwhals/_interchange/series.py__init__InterchangeSeries.__init__   s         c                    U $ r    r   s    r   __narwhals_series__%InterchangeSeries.__narwhals_series__   s    r   c                    Sn[        U5      e)NzCannot access native namespace for metadata-only series with unknown backend. If you would like to see this kind of object supported in Narwhals, please open a feature request at https://github.com/narwhals-dev/narwhals/issues.NotImplementedError)r   msgs     r   __native_namespace__&InterchangeSeries.__native_namespace__   s    Y 	
 "#&&r   c                R    [        U R                  R                  U R                  S9$ )N)r   )r   r   dtyper   r   s    r   r&   InterchangeSeries.dtype    s$    6%%t}}
 	
r   c                    U R                   $ r   )r   r   s    r   nativeInterchangeSeries.native&   s    """r   c                $    SU S3n[        U5      e)Nz
Attribute aG   is not supported for metadata-only dataframes.

Hint: you probably called `nw.from_native` on an object which isn't fully supported by Narwhals, yet implements `__dataframe__`. If you would like to see this kind of object supported in Narwhals, please open a feature request at https://github.com/narwhals-dev/narwhals/issues.r    )r   attrr"   s      r   __getattr__InterchangeSeries.__getattr__*   s'     B B 	 "#&&r   r   N)r   r   r   r
   returnNone)r/   r   )r/   r   )r/   r	   )r/   r   )r,   strr/   r   )__name__
__module____qualname____firstlineno__r   r   r#   propertyr&   r)   r-   __static_attributes__r   r   r   r   r      s>     ' 
 

 # #'r   r   N)
__future__r   typingr   r   r   narwhals._interchange.dataframer   typing_extensionsr   narwhals.dtypesr	   narwhals.utilsr
   r   r   r   r   <module>r>      s*    "     S&%&"' "'r   