U
    /e                     @  sV   d Z ddlmZ ddlZeeZddlmZ dZ	G dd deZ
G d	d
 d
e
ZdS )z| Provide wildcard properties.

The Any and AnyRef properties can be used to hold values without performing
any validation.

    )annotationsN   )Property)AnyAnyRefc                      s(   e Zd ZdZddd fddZ  ZS )	r   aq   Accept all values.

    The ``Any`` property does not do any validation or transformation.

    Args:
        default (obj or None, optional) :
            A default value for attributes created from this property to
            have (default: None)

        help (str or None, optional) :
            A documentation string for this property. It will be automatically
            used by the :ref:`bokeh.sphinxext.bokeh_prop` extension when
            generating Spinx documentation. (default: None)

        serialized (bool, optional) :
            Whether attributes created from this property should be included
            in serialization (default: True)

        readonly (bool, optional) :
            Whether attributes created from this property are read-only.
            (default: False)

    Example:

        .. code-block:: python

            >>> class AnyModel(HasProps):
            ...     prop = Any()
            ...

            >>> m = AnyModel()

            >>> m.prop = True

            >>> m.prop = 10

            >>> m.prop = 3.14

            >>> m.prop = "foo"

            >>> m.prop = [1, 2, 3]

    NFNonereturnc                   s   t  j||||d d S )N)defaulthelp
serializedreadonly)super__init__)selfr
   r   r   r   	__class__ ;/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/core/property/any.pyr   W   s    zAny.__init__)NNNF)__name__
__module____qualname____doc__r   __classcell__r   r   r   r   r   *   s   ,r   c                   @  s"   e Zd ZdZeddddZdS )r   z2 Accept all values and force reference discovery. boolr   c                 C  s   dS )NTr   )r   r   r   r   has_ref]   s    zAnyRef.has_refN)r   r   r   r   propertyr   r   r   r   r   r   Z   s   r   )r   
__future__r   logging	getLoggerr   logbasesr   __all__r   r   r   r   r   r   <module>   s   

	0