Add "colour.utilities.documentation.DocstringText" class.
@@ -9,6 +9,8 @@ Defines documentation related objects.
from __future__ import division, unicode_literals
+from six import text_type
+
__author__ = 'Colour Developers'
__copyright__ = 'Copyright (C) 2013-2018 - Colour Developers'
__license__ = 'New BSD License - http://opensource.org/licenses/BSD-3-Clause'
@@ -16,7 +18,18 @@ __maintainer__ = 'Colour Developers'
__email__ = 'colour-science@googlegroups.com'
__status__ = 'Production'
-__all__ = ['DocstringDict', 'DocstringTuple', 'DocstringFloat']
+__all__ = [
+ 'DocstringText', 'DocstringDict', 'DocstringTuple', 'DocstringFloat'
+]
+
+
+class DocstringText(text_type):
+ """
+ A :class:`unicode` sub-class that allows settings a docstring to
+ :class:`unicode` instances.
+ """
+
+ pass
class DocstringDict(dict):
