From 4851bbb1416f56ce90fcd56782e07632f1cb61e4 Mon Sep 17 00:00:00 2001 From: Tim Tisdall Date: Wed, 10 Jun 2015 17:22:48 +0000 Subject: [PATCH] make docs align with code --- colander/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/colander/__init__.py b/colander/__init__.py index d2a518b..c574f76 100644 --- a/colander/__init__.py +++ b/colander/__init__.py @@ -1785,7 +1785,9 @@ class _SchemaNode(object): - ``typ``: The 'type' for this node. It should be an instance of a class that implements the :class:`colander.interfaces.Type` interface. If ``typ`` is not passed, - it defaults to ``colander.Mapping()``. + a call to the ``schema_type()`` method on this class is made to + get a default type. (When subclassing, ``schema_type()`` should + be overridden to provide a reasonable default type). - ``*children``: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added