docs. SchemaNode API show __doc__ and members inherited from _SchemaNode

This commit is contained in:
schettino72
2013-06-25 11:01:03 +12:00
parent 12b4de10be
commit 55707ff844
2 changed files with 3 additions and 6 deletions

View File

@@ -2081,7 +2081,7 @@ class _SchemaMeta(type):
SchemaNode = _SchemaMeta( SchemaNode = _SchemaMeta(
'SchemaNode', 'SchemaNode',
(_SchemaNode,), (_SchemaNode,),
{} {'__doc__': _SchemaNode.__doc__}
) )
class Schema(SchemaNode): class Schema(SchemaNode):

View File

@@ -115,8 +115,9 @@ Types
Schema-Related Schema-Related
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
.. autoclass:: _SchemaNode .. autoclass:: SchemaNode
:members: :members:
:inherited-members:
.. automethod:: __delitem__ .. automethod:: __delitem__
@@ -124,10 +125,6 @@ Schema-Related
.. automethod:: __iter__ .. automethod:: __iter__
.. autoclass:: SchemaNode
:show-inheritance:
:members:
.. autoclass:: Schema .. autoclass:: Schema
.. autoclass:: MappingSchema .. autoclass:: MappingSchema