##// 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:

r19462:3f476c1e
r20649:fbe6a44e
Show More
__init__.py
11 lines | 389 B | text/x-python | PythonLexer
from .export import *
from .html import HTMLExporter
from .slides import SlidesExporter
from .templateexporter import TemplateExporter
from .latex import LatexExporter
from .markdown import MarkdownExporter
from .notebook import NotebookExporter
from .pdf import PDFExporter
from .python import PythonExporter
from .rst import RSTExporter
from .exporter import Exporter, FilenameExtension