##// 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.
Scott Sanderson -
r20649:fbe6a44e
Show More
Name Size Modified Last Commit Author
/ IPython / nbformat / tests
__init__.py Loading ...
base.py Loading ...
invalid.ipynb Loading ...
test2.ipynb Loading ...
test3.ipynb Loading ...
test4.ipynb Loading ...
test4plus.ipynb Loading ...
test_api.py Loading ...
test_convert.py Loading ...
test_reader.py Loading ...
test_sign.py Loading ...
test_validator.py Loading ...