##// END OF EJS Templates
DOC: Warn the user when they pass `default` to a TraitType....
DOC: Warn the user when they pass `default` to a TraitType. Most TraitType subclasses accept a `default_value` parameter. On more occasions than I care to admit, I've written something like: ``` class Foo(HasTraits): foo_int = Integer(default=5) ``` when what I actually meant was ``` class Foo(HasTraits): foo_int = Integer(default_value=5) ``` I suspect I'm not the only one who's had to track down this same bug multiple times.

File last commit:

r18998:ff3d2102
r20649:fbe6a44e
Show More
test4plus.ipynb
348 lines | 17.6 KiB | text/plain | TextLexer

Invalid Notebook!

{'cell_type': 'future cell', 'metadata': {}, 'key': 'value', 'id': '29613f60'} is not valid under any of the given schemas Failed validating 'oneOf' in future cell_cell['properties']['cells']['items']: On instance['cells'][9]: {'cell_type': 'future cell', 'id': '29613f60', 'key': 'value', 'metadata': {}}