from enthought.traits.trait_types import Bool, Any
from enthought.traits.ui.editor_factory import EditorFactory


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Is multiselect enabled for a CustomEditor?
    multi_select = Bool(False)
    
    # Should users be able to pick future dates when using the CustomEditor?
    allow_future = Bool(True)
    
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

from enthought.traits.trait_types import Bool, Any
from enthought.traits.ui.editor_factory import EditorFactory


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Is multiselect enabled for a CustomEditor?
    # If True, then the edited object must be a Date.  If False, then it's
    # a List of Dates.
    multi_select = Bool(False)
    
    # Should users be able to pick future dates when using the CustomEditor?
    allow_future = Bool(True)
    
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

Add type info in comment.
Add type info in comment.

  from enthought.traits.trait_types import Bool, Any
  from enthought.traits.ui.editor_factory import EditorFactory
  
  
  #-- DateEditor definition ----------------------------------------------------- 
  class DateEditor ( EditorFactory ):
      """
      Editor factory for date/time editors. 
      """
  
      #---------------------------------------------------------------------------
      #  Trait definitions:  
      #---------------------------------------------------------------------------
      
      # Is multiselect enabled for a CustomEditor?
+     # If True, then the edited object must be a Date.  If False, then it's
+     # a List of Dates.
      multi_select = Bool(False)
      
      # Should users be able to pick future dates when using the CustomEditor?
      allow_future = Bool(True)
      
  #-- end DateEditor definition ------------------------------------------------- 
  
  
  #-- eof ----------------------------------------------------------------------- 
  
Add type info in comment.
## Code Before:
from enthought.traits.trait_types import Bool, Any
from enthought.traits.ui.editor_factory import EditorFactory


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Is multiselect enabled for a CustomEditor?
    multi_select = Bool(False)
    
    # Should users be able to pick future dates when using the CustomEditor?
    allow_future = Bool(True)
    
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 

## Instruction:
Add type info in comment.
## Code After:
from enthought.traits.trait_types import Bool, Any
from enthought.traits.ui.editor_factory import EditorFactory


#-- DateEditor definition ----------------------------------------------------- 
class DateEditor ( EditorFactory ):
    """
    Editor factory for date/time editors. 
    """

    #---------------------------------------------------------------------------
    #  Trait definitions:  
    #---------------------------------------------------------------------------
    
    # Is multiselect enabled for a CustomEditor?
    # If True, then the edited object must be a Date.  If False, then it's
    # a List of Dates.
    multi_select = Bool(False)
    
    # Should users be able to pick future dates when using the CustomEditor?
    allow_future = Bool(True)
    
#-- end DateEditor definition ------------------------------------------------- 


#-- eof ----------------------------------------------------------------------- 
