Skip to content

Commit

Permalink
Merge pull request #73 from zopefoundation/doc-IFromBytes
Browse files Browse the repository at this point in the history
Document IFromBytes in Sphinx.
  • Loading branch information
jamadden committed Sep 20, 2018
2 parents 5c1555d + 49ab9a4 commit d78c57c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/api.rst
Expand Up @@ -10,7 +10,6 @@ Interfaces
==========

.. autointerface:: zope.schema.interfaces.IField
.. autointerface:: zope.schema.interfaces.IFromUnicode
.. autointerface:: zope.schema.interfaces.IChoice
.. autointerface:: zope.schema.interfaces.IContextAwareDefaultFactory
.. autointerface:: zope.schema.interfaces.IOrderable
Expand All @@ -22,6 +21,13 @@ Interfaces
.. autointerface:: zope.schema.interfaces.IObject


Conversions
-----------

.. autointerface:: zope.schema.interfaces.IFromBytes
.. autointerface:: zope.schema.interfaces.IFromUnicode


Strings
-------

Expand Down Expand Up @@ -158,8 +164,8 @@ Schema APIs
.. autofunction:: zope.schema.getSchemaValidationErrors
:noindex:

Fields
======
Field Implementations
=====================

.. autoclass:: zope.schema.Field
.. autoclass:: zope.schema.Collection
Expand Down
2 changes: 2 additions & 0 deletions src/zope/schema/_bootstrapinterfaces.py
Expand Up @@ -292,6 +292,8 @@ class IFromBytes(zope.interface.Interface):
Parse a byte string to a value.
If the string needs to be decoded, decoding is done using UTF-8.
.. versionadded:: 4.8.0
"""

def fromBytes(value):
Expand Down

0 comments on commit d78c57c

Please sign in to comment.