3
ˆdÉ  ã               @   s¸   d dl mZ d dlZG dd„ deƒZG dd„ deƒZG dd„ deƒZejZej	Z
ejZG d	d
„ d
eƒZejjZejdejdejdejdejdejdejdejdejdejdejdiZdS )é    )ÚIntEnumNc               @   s4   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdS )Ú	TraitKindzJ These determine the getters and setters used by the cTrait instance.
    r   é   é   é   é   é   é   é   é   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZtraitÚpythonÚeventZdelegateÚpropertyÚdisallowZ	read_onlyÚconstantZgeneric© r   r   ú2/tmp/pip-build-7vycvbft/traits/traits/constants.pyr      s   r   c               @   s`   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdS )ÚValidateTraitz? These are indices into the ctraits.c validate_handlers array. r   r   r   r   r   r   r	   r
   r   é	   é
   é   é   é   é   é   é   é   é   é   N)r   r   r   r   ÚtypeÚinstanceZ	self_typeZ	int_rangeZfloat_rangeÚenumÚmapÚcomplexZslowÚtupleZ
prefix_mapZcoerceÚcastÚfunctionr   ZadaptÚintÚfloatÚcallableZcomplex_numberr   r   r   r   r   4   s*   r   c               @   s   e Zd ZdZdZdZdZdS )ÚComparisonModea†   Comparison mode.

    Indicates when trait change notifications should be generated based upon
    the result of comparing the old and new values of a trait assignment:

    Enumeration members:

    none
        The values are not compared and a trait change notification is
        generated on each assignment.
    identity
        A trait change notification is generated if the old and new values are
        not the same object.
    equality
        A trait change notification is generated if the old and new values are
        not the same object, and not equal using Python's standard equality
        testing. This is the default.
    r   r   r   N)r   r   r   r   ÚnoneÚidentityÚequalityr   r   r   r   r.   t   s   r.   c               @   sl   e Zd ZdZdZejjZejj	Z
ejjZejjZejjZejjZejjZejjZejjZejjZejjZdS )ÚDefaultValuez Default value types. r   Néÿÿÿÿ)r   r   r   r   ZunspecifiedÚtraitsÚctraitsZ_CONSTANT_DEFAULT_VALUEr   Z_MISSING_DEFAULT_VALUEÚmissingZ_OBJECT_DEFAULT_VALUEÚobjectZ_LIST_COPY_DEFAULT_VALUEÚ	list_copyZ_DICT_COPY_DEFAULT_VALUEÚ	dict_copyZ _TRAIT_LIST_OBJECT_DEFAULT_VALUEÚtrait_list_objectZ _TRAIT_DICT_OBJECT_DEFAULT_VALUEÚtrait_dict_objectZ _CALLABLE_AND_ARGS_DEFAULT_VALUEÚcallable_and_argsZ_CALLABLE_DEFAULT_VALUEr-   Z_TRAIT_SET_OBJECT_DEFAULT_VALUEÚtrait_set_objectZ_DISALLOW_DEFAULT_VALUEr   r   r   r   r   r2   ž   s   r2   ÚvalueÚselfÚlistÚdictÚfactoryÚmethodÚsetÚinvalid)r%   r   Ztraits.ctraitsr4   r   r   r.   r/   Z
NO_COMPAREr0   ZOBJECT_IDENTITY_COMPAREr1   ZRICH_COMPAREr2   r5   Z_MAXIMUM_DEFAULT_VALUE_TYPEZMAXIMUM_DEFAULT_VALUE_TYPEr   r6   r7   r8   r9   r:   r;   r<   r-   r=   r   Zdefault_value_mapr   r   r   r   Ú<module>   s(   $@!4