remove duplication of documentation
This commit is contained in:
@@ -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>'
|
||||
|
16
docs/api.rst
16
docs/api.rst
@@ -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`.
|
||||
|
Reference in New Issue
Block a user