class_docstr: Override attributes of Bokeh property in derived Models.
  
  When subclassing a Bokeh Model, it may be desirable to change some of the
  attributes of the property itself, from those on the base class. This is
  accomplished using the ``Override`` class.
  
  Currently, ``Override`` can only be use to override the ``default`` value
  for the property.
  
  Keyword Args:
      default (obj) : a default value for this property on a subclass
  
  Example:
  
      Consider the following class definitions:
  
      .. code-block:: python
  
          from bokeh.model import Model
          from bokeh.properties import Int, Override
  
          class Parent(Model):
              foo = Int(default=10)
  
          class Child(Parent):
              foo = Override(default=20)
  
      The parent class has an integer property ``foo`` with default value
      10.  The child class uses the following code:
  
      .. code-block:: python
  
          foo = Override(default=20)
  
      to specify that the default value for the ``foo`` property should be
      20 on instances of the child class:
  
      .. code-block:: python
  
          >>> p = Parent()
          >>> p.foo
          10
  
          >>> c = Child()
          >>> c.foo
          20
class_docstr_tok: ["Override","attributes","of","Bokeh","property","in","derived","Models",".","When","subclassing","a","Bokeh","Model",",","it","may","be","desirable","to","change","some","of","the","attributes","of","the","property","itself",",","from","those","on","the","base","class",".","This","is","accomplished","using","the","``","Override","``","class",".","Currently",",","``","Override","``","can","only","be","use","to","override","the","``","default","``","value","for","the","property",".","Keyword","Args",":","default","(","obj",")",":","a","default","value","for","this","property","on","a","subclass","Example",":","Consider","the","following","class","definitions",":","..","code-block",":",":","python","from","bokeh.model","import","Model","from","bokeh.properties","import","Int",",","Override","class","Parent","(","Model",")",":","foo","=","Int","(","default=10",")","class","Child","(","Parent",")",":","foo","=","Override","(","default=20",")","The","parent","class","has","an","integer","property","``","foo","``","with","default","value","10",".","The","child","class","uses","the","following","code",":","..","code-block",":",":","python","foo","=","Override","(","default=20",")","to","specify","that","the","default","value","for","the","``","foo","``","property","should","be","20","on","instances","of","the","child","class",":","..","code-block",":",":","python",">",">",">","p","=","Parent","(",")",">",">",">","p.foo","10",">",">",">","c","=","Child","(",")",">",">",">","c.foo","20"]
code: def __init__(self, *, default: T) -> None:
      self.default_overridden = True
      self.default = default
  
imports: from __future__ import annotations
  import logging
  from typing import Generic, TypeVar
label_desc: Use image node_id 1 to create a new Override object from inherited base classes: Generic with example: obj = Override()