class_docstr: Display a widget for picking datetimes.
  
  Parameters
  ----------
  
  value: datetime.datetime
      The current value of the widget.
  
  disabled: bool
      Whether to disable user changes.
  
  min: datetime.datetime
      The lower allowed datetime bound
  
  max: datetime.datetime
      The upper allowed datetime bound
  
  Examples
  --------
  
  >>> import datetime
  >>> import ipydatetime
  >>> datetime_pick = ipydatetime.DatetimePicker()
  >>> datetime_pick.value = datetime.datetime(2018, 09, 5, 12, 34, 3)
class_docstr_tok: ["Display","a","widget","for","picking","datetimes",".","Parameters","--","--","--","--","--","value",":","datetime.datetime","The","current","value","of","the","widget",".","disabled",":","bool","Whether","to","disable","user","changes",".","min",":","datetime.datetime","The","lower","allowed","datetime","bound","max",":","datetime.datetime","The","upper","allowed","datetime","bound","Examples","--","--","--","--",">",">",">","import","datetime",">",">",">","import","ipydatetime",">",">",">","datetime_pick","=","ipydatetime.DatetimePicker","(",")",">",">",">","datetime_pick.value","=","datetime.datetime","(","2018",",","09",",","5",",","12",",","34",",","3",")"]
docstr: Enforce min <= value <= max
docstr_tok: ["Enforce","min","<","=","value","<","=","max"]
code: def _validate_max(self, proposal):
      """Enforce min <= value <= max"""
      max = proposal["value"]
      if max is None:
          return max
      max = self._validate_tz(max)
      if self.min and max < self.min:
          raise TraitError("setting max < min")
      if self.value and max < self.value:
          self.value = max
      return max
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/widget_datetime.py
imports: from traitlets import Unicode, Bool, validate, TraitError
  from .trait_types import datetime_serialization, Datetime, naive_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 4 for calling the DatetimePicker obj's underlying member method code with example usage: obj._validate_max(proposal) and returns: max, max