
    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S	9r	 " S
 S\\	   5      r
g)    )annotations)TYPE_CHECKING)Any)Generic)TypeVar)SeriesSeriesTzSeries[Any])boundc                  (    \ rS rSrSS jrSS jrSrg)SeriesListNamespace   c                    Xl         g )N_narwhals_series)selfseriess     F/var/www/html/env/lib/python3.13/site-packages/narwhals/series_list.py__init__SeriesListNamespace.__init__   s     &    c                    U R                   R                  U R                   R                  R                  R	                  5       5      $ )a  Return the number of elements in each list.

Null values count towards the total.

Returns:
    A new series.

Examples:
    >>> import pyarrow as pa
    >>> import narwhals as nw
    >>> s_native = pa.chunked_array([[[1, 2], [3, 4, None], None, []]])
    >>> s = nw.from_native(s_native, series_only=True)
    >>> s.list.len().to_native()  # doctest: +ELLIPSIS
    <pyarrow.lib.ChunkedArray object at ...>
    [
      [
        2,
        3,
        null,
        0
      ]
    ]
)r   _with_compliant_compliant_serieslistlen)r   s    r   r   SeriesListNamespace.len   s;    0 $$44!!3388<<>
 	
r   r   N)r   r	   returnNone)r   r	   )__name__
__module____qualname____firstlineno__r   r   __static_attributes__ r   r   r   r      s    '
r   r   N)
__future__r   typingr   r   r   r   narwhals.seriesr   r	   r   r$   r   r   <module>r(      s9    "     & )=
1
''* 
r   