U o‰^°ã@s,ddlmZddlmZGdd„deƒZdS)é)Úcopy)Ú deprecatedcsleZdZdZdZdd„Zdd„Zdd„Z‡fd d „Zd d „Z d d„Z e dƒdd„ƒZ dd„Z dd„Z‡ZS)Ú StyleProxyzA Proxy formatting objects so that they cannot be altered Z__targetcCs ||_dS©N©Ú_StyleProxy__target)ÚselfÚtarget©r úo/private/var/folders/sd/whlwsn6x1_qgglc0mjv25_695qk2gl/T/pip-install-4zq3fp6i/openpyxl/openpyxl/styles/proxy.pyÚ__init__szStyleProxy.__init__cCs t|jƒSr)Úreprr©rr r r Ú__repr__szStyleProxy.__repr__cCs t|j|ƒSr)Úgetattrr)rÚattrr r r Ú __getattr__szStyleProxy.__getattr__cs&|dkrtdƒ‚tt|ƒ ||¡dS)NrzPStyle objects are immutable and cannot be changed.Reassign the style with a copy)ÚAttributeErrorÚsuperrÚ __setattr__)rrÚvalue©Ú __class__r r rszStyleProxy.__setattr__cCs t|jƒS)z6 Return a copy of the proxied object. )rrrr r r Ú__copy__"szStyleProxy.__copy__cCs |j|S)zW Add proxied object to another instance and return the combined object r©rÚotherr r r Ú__add__)szStyleProxy.__add__z,Use copy(obj) or cell.obj = cell.obj + othercKs,t|jƒ}| ¡D]\}}t|||ƒq|S)zHReturn a copy of the proxied object. Keyword args will be passed through)rrÚitemsÚsetattr)rÚkwÚcpÚkÚvr r r r0s zStyleProxy.copycCs |j|kSrrrr r r Ú__eq__9szStyleProxy.__eq__cCs ||k Srr rr r r Ú__ne__=szStyleProxy.__ne__)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú __slots__r rrrrrrrr#r$Ú __classcell__r r rr rs  rN)rZopenpyxl.compatrÚobjectrr r r r Ús