From 83fa3edddc18c641cf501479dabd739596b8fb2a Mon Sep 17 00:00:00 2001 From: Tim Tisdall Date: Wed, 6 May 2015 14:48:46 +0000 Subject: [PATCH] remove duplication of documentation --- colander/__init__.py | 6 +++--- docs/api.rst | 16 ++++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/colander/__init__.py b/colander/__init__.py index 9355146..26299f6 100644 --- a/colander/__init__.py +++ b/colander/__init__.py @@ -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 '' diff --git a/docs/api.rst b/docs/api.rst index 15439f5..e3584c8 100644 --- a/docs/api.rst +++ b/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`.