class_docstr: Display a widget for picking times.
  
  Parameters
  ----------
  
  value: datetime.time
      The current value of the widget.
  
  disabled: bool
      Whether to disable user changes.
  
  min: datetime.time
      The lower allowed time bound
  
  max: datetime.time
      The upper allowed time bound
  
  step: float | 'any'
      The time step to use for the picker, in seconds, or "any"
  
  Examples
  --------
  
  >>> import datetime
  >>> import ipydatetime
  >>> time_pick = ipydatetime.TimePicker()
  >>> time_pick.value = datetime.time(12, 34, 3)
class_docstr_tok: ["Display","a","widget","for","picking","times",".","Parameters","--","--","--","--","--","value",":","datetime.time","The","current","value","of","the","widget",".","disabled",":","bool","Whether","to","disable","user","changes",".","min",":","datetime.time","The","lower","allowed","time","bound","max",":","datetime.time","The","upper","allowed","time","bound","step",":","float","|","'any'","The","time","step","to","use","for","the","picker",",","in","seconds",",","or","``","any","''","Examples","--","--","--","--",">",">",">","import","datetime",">",">",">","import","ipydatetime",">",">",">","time_pick","=","ipydatetime.TimePicker","(",")",">",">",">","time_pick.value","=","datetime.time","(","12",",","34",",","3",")"]
docstr: Cap and floor value
docstr_tok: ["Cap","and","floor","value"]
code: def _validate_value(self, proposal):
      """Cap and floor value"""
      value = proposal["value"]
      if value is None:
          return value
      if self.min and self.min > value:
          value = max(value, self.min)
      if self.max and self.max < value:
          value = min(value, self.max)
      return value
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/widget_time.py
imports: from traitlets import Unicode, Bool, Union, CaselessStrEnum, CFloat, validate, TraitError
  from .trait_types import Time, time_serialization
  from .valuewidget import ValueWidget
  from .widget import register
  from .widget_core import CoreWidget
  from .widget_description import DescriptionWidget
label_desc: Use image node_id 1 for calling the TimePicker obj's underlying member method code with example usage: obj._validate_value(proposal) and returns: value, value