class_docstr: Accept TimeDelta values.
  
      
class_docstr_tok: ["Accept","TimeDelta","values","."]
code: def validate(self, value: Any, detail: bool = True) -> None:
      super().validate(value, detail)
  
      if is_timedelta_type(value):
          return
  
      msg = (
          ""
          if not detail
          else f"Expected a timedelta instance, got {value!r}"
      )
      raise ValueError(msg)
  
imports: from __future__ import annotations
  import logging
  import datetime
  from typing import Any, Union
  from ...util.serialization import convert_date_to_datetime, is_datetime_type, is_timedelta_type
  from .bases import Init, Property
  from .primitive import bokeh_integer_types
  from .singletons import Undefined
label_desc: Use image node_id 3 for calling the TimeDelta obj's underlying member method code with example usage: obj.validate(value, detail) without return types