When creating an Enum with no arguments, we get a non-obvious failure message:
>>> class A(HasTraits):
... foo = Enum()
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in A
File "/Users/mdickinson/Enthought/ETS/traits/traits/trait_types.py", line 1967, in __init__
default_value = args[0]
IndexError: tuple index out of range
It would be good to fix the exception type and exception message to something better.
When creating an
Enumwith no arguments, we get a non-obvious failure message:It would be good to fix the exception type and exception message to something better.