iddlmZmZmZddlmZddlmZmZm Z m Z m Z ddl m Z GddeZGdd eZd S) )TypedSequenceAlias) Serialisable)FontFillBorder Alignment Protection) NumberFormatceZdZdZdZeedZeedZ ee dZ ee dZ eedZeedZ ddZdS)DifferentialStyledxf)fontnumFmtfill alignmentborder protectionT) expected_type allow_noneNch||_||_||_||_||_||_||_dSN)rrrrrrextLst)selfrrrrrrrs JC:\PYTHON\_runtimes\venv\Lib\site-packages\openpyxl/styles/differential.py__init__zDifferentialStyle.__init__ s9   " $ )NNNNNNN)__name__ __module__ __qualname__tagname __elements__rrrr rrrr rr rr rrrrrrsGRL 5t 5 5 5D U$ ? ? ?F 5t 5 5 5DI$???I UD 9 9 9FZDAAAJ rrc~eZdZdZdZeeZedZ dZ ddZ d Z d Z d Zd Zed ZdS)DifferentialStyleListz6 Dedupable container for differential styles. dxfs)rr)countr%Nc||_dSr)r)rrr)s rrzDifferentialStyleList.__init__>s rct|ts$tdttz||jvrdS|j|dS)zV Check to see whether style already exists and append it if does not. z expected N) isinstancer TypeErrorstrstylesappendrrs rr0zDifferentialStyleList.appendBsb#011 BK#.?*@*@@AA A $+   F 3rc`|||j|S)z? Add a differential style and return its index )r0r/indexr1s raddzDifferentialStyleList.addMs, C{  %%%rc*t|jSr)boolr/rs r__bool__zDifferentialStyleList.__bool__UsDK   rc|j|Sr)r/)ridxs r __getitem__z!DifferentialStyleList.__getitem__Ys{3rc*t|jSr)lenrr7s rr)zDifferentialStyleList.count]s48}}r)r%N)r r!r"__doc__r#rrrrr/ __attrs__rr0r4r8r;propertyr)r%rrr'r'2sG (!2 3 3 3C U5\\FI   &&&!!!   Xrr'N)openpyxl.descriptorsrrr!openpyxl.descriptors.serialisableropenpyxl.stylesrrr r r numbersr rr'r%rrrEs ;:::::"!!!!! >-----L-----r