
    ]h                     D    d Z ddlmZmZmZmZ dgZdZdZ G d de	      Z
y)zBStyleSheetList implements DOM Level 2 Style Sheets StyleSheetList.    )unicode_literalsdivisionabsolute_importprint_functionStyleSheetListrestructuredtextz$Id$c                   ,    e Zd ZdZd Z ed d      Zy)r   a  Interface `StyleSheetList` (introduced in DOM Level 2)

    The `StyleSheetList` interface provides the abstraction of an ordered
    collection of :class:`~css_parser.stylesheets.StyleSheet` objects.

    The items in the `StyleSheetList` are accessible via an integral index,
    starting from 0.

    This Python implementation is based on a standard Python list so e.g.
    allows ``examplelist[index]`` usage.
    c                 ,    	 | |   S # t         $ r Y yw xY w)z
        Used to retrieve a style sheet by ordinal `index`. If `index` is
        greater than or equal to the number of style sheets in the list,
        this returns ``None``.
        N)
IndexError)selfindexs     /home/pod-website-builder.sw7ft.com/pod-website-builder/website-analyzer/venv/lib/python3.12/site-packages/css_parser/stylesheets/stylesheetlist.pyitemzStyleSheetList.item   s#    	; 		s    	c                     t        |       S )N)len)r   s    r   <lambda>zStyleSheetList.<lambda>!   s
    3t9     zThe number of :class:`StyleSheet` objects in the list. The range  of valid child stylesheet indices is 0 to length-1 inclusive.)docN)__name__
__module____qualname____doc__r   propertylength r   r   r   r   	   s"    
	 ,XYFr   N)r   
__future__r   r   r   r   __all____docformat____version__listr   r   r   r   <module>r!      s.    H R R
"YT Yr   