
    	h                     x    S SK JrJrJr  S SKJr  S SKJrJrJ	r	J
r
Jr  SSKJr   " S S\5      r " S S	\5      rg
)    )TypedSequenceAlias)Serialisable)FontFillBorder	Alignment
Protection   )NumberFormatc                       \ rS rSrSrSr\" \SS9r\" \	SS9r
\" \SS9r\" \SS9r\" \SS9r\" \SS9r       S	S jrSrg)
DifferentialStyle   dxf)fontnumFmtfill	alignmentborder
protectionT)expected_type
allow_noneNc                 X    Xl         X l        X0l        X@l        XPl        X`l        Xpl        g N)r   r   r   r   r   r   extLst)selfr   r   r   r   r   r   r   s           N/var/www/html/env/lib/python3.13/site-packages/openpyxl/styles/differential.py__init__DifferentialStyle.__init__    s'     		"$    )r   r   r   r   r   r   r   )NNNNNNN)__name__
__module____qualname____firstlineno__tagname__elements__r   r   r   r   r   r   r   r
   r   r	   r   r   r   r   __static_attributes__ r!   r   r   r      sp    GRLt5D$?Ft5DI$?ID9FZDAJ  r!   r   c                   n    \ rS rSrSrSr\" \S9r\	" S5      r
SrSS jrS	 rS
 rS rS r\S 5       rSrg)DifferentialStyleList2   z.
Dedupable container for differential styles.
dxfs)r   r   )countNc                     Xl         g r   r   )r   r   r.   s      r   r   DifferentialStyleList.__init__>   s    r!   c                     [        U[        5      (       d  [        S[        [        5      -   5      eXR                  ;   a  gU R                  R                  U5        g)zF
Check to see whether style already exists and append it if does not.
z	expected N)
isinstancer   	TypeErrorstrstylesappendr   r   s     r   r7   DifferentialStyleList.appendB   sG     #011K#.?*@@AA++3r!   c                 Z    U R                  U5        U R                  R                  U5      $ )z/
Add a differential style and return its index
)r7   r6   indexr8   s     r   addDifferentialStyleList.addM   s%     	C{{  %%r!   c                 ,    [        U R                  5      $ r   )boolr6   r   s    r   __bool__DifferentialStyleList.__bool__U   s    DKK  r!   c                      U R                   U   $ r   )r6   )r   idxs     r   __getitem__!DifferentialStyleList.__getitem__Y   s    {{3r!   c                 ,    [        U R                  5      $ r   )lenr   r@   s    r   r.   DifferentialStyleList.count]   s    488}r!   r0   )r)   N)r"   r#   r$   r%   __doc__r&   r   r   r   r   r6   	__attrs__r   r7   r<   rA   rE   propertyr.   r(   r)   r!   r   r+   r+   2   sT     G
!2
3C5\FI &!   r!   r+   N)openpyxl.descriptorsr   r   r   !openpyxl.descriptors.serialisabler   openpyxl.stylesr   r   r	   r
   r   numbersr   r   r+   r)   r!   r   <module>rQ      s;    
 ;  " >-L -r!   