#-----------------------------------------------------------------------------# Copyright (c) Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------""" """#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Standard library importsfromtypingimportAny,NoReturn# Bokeh importsfrom.basesimportProperty,Undefined#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=("Nothing",)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]classNothing(Property[NoReturn]):""" The bottom type of bokeh's type system. It doesn't accept any values. """def__init__(self,*,help:str|None=None)->None:super().__init__(default=Undefined,help=help)defvalidate(self,value:Any,detail:bool=True)->None:raiseValueError("no value is allowed")
#-----------------------------------------------------------------------------# Dev API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Private API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Code#-----------------------------------------------------------------------------