remove duplication of documentation

This commit is contained in:
Tim Tisdall
2015-05-06 14:48:46 +00:00
parent 7e5e0e6b11
commit 83fa3edddc
2 changed files with 9 additions and 13 deletions

View File

@@ -47,9 +47,9 @@ class _null(object):
null = _null()
class _drop(object):
"""
Represents a value that should be dropped if it is missing during
deserialization.
""" Represents a value that will be dropped from the schema if it
is missing during *deserialization*. Passed as a value to the
`missing` keyword argument of :class:`SchemaNode`.
"""
def __repr__(self):
return '<colander.drop>'

View File

@@ -147,16 +147,12 @@ Schema-Related
.. autoclass:: instantiate
.. attribute:: null
.. autodata:: null
:annotation:
Represents a null value in colander-related operations.
.. autodata:: required
:annotation:
.. attribute:: required
.. autodata:: drop
:annotation:
Represents a required value in colander-related operations.
.. attribute:: drop
Represents a value that will be dropped from the schema if it is missing
during *deserialization*. Passed as a value to the `missing` keyword
argument of :class:`SchemaNode`.