From 49ab9a406b1548f56cf53cad1934d6df9c719463 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Thu, 20 Sep 2018 11:14:36 -0500 Subject: [PATCH] Document IFromBytes in Sphinx. Add a missing '.. versionadded::' directive. --- docs/api.rst | 12 +++++++++--- src/zope/schema/_bootstrapinterfaces.py | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index c866ff7..9344e44 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 @@ -22,6 +21,13 @@ Interfaces .. autointerface:: zope.schema.interfaces.IObject +Conversions +----------- + +.. autointerface:: zope.schema.interfaces.IFromBytes +.. autointerface:: zope.schema.interfaces.IFromUnicode + + Strings ------- @@ -158,8 +164,8 @@ Schema APIs .. autofunction:: zope.schema.getSchemaValidationErrors :noindex: -Fields -====== +Field Implementations +===================== .. autoclass:: zope.schema.Field .. autoclass:: zope.schema.Collection diff --git a/src/zope/schema/_bootstrapinterfaces.py b/src/zope/schema/_bootstrapinterfaces.py index 4f0419e..79f9c49 100644 --- a/src/zope/schema/_bootstrapinterfaces.py +++ b/src/zope/schema/_bootstrapinterfaces.py @@ -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):