@@ -158,20 +158,7 @@ def loads(
158
158
# Copyright © 2000 BeOpen.com . All rights reserved.
159
159
# Copyright © 1995-2000 Corporation for National Research Initiatives . All rights reserved.
160
160
# Copyright © 1991-1995 Stichting Mathematisch Centrum . All rights reserved.
161
- #
162
-
163
- # if domdf_python_tools.DOCUMENTING:
164
- # WrapperDescriptorType = ''
165
- # """
166
- # The type of methods of some built-in data types and base classes such as
167
- # :meth:`object.__init__` or :meth:`object.__lt__`.
168
- # """
169
- #
170
- # MethodWrapperType = ''
171
- # MethodDescriptorType = ''
172
- # ClassMethodDescriptorType = ''
173
161
174
- # else:
175
162
WrapperDescriptorType = type (object .__init__ )
176
163
MethodWrapperType = type (object ().__str__ )
177
164
MethodDescriptorType = type (str .join )
@@ -182,6 +169,10 @@ def loads(
182
169
class String (Protocol ):
183
170
"""
184
171
:class:`~typing.Protocol` for classes that implement ``__str__``.
172
+
173
+ .. versionchanged:: 0.8.0
174
+
175
+ Moved from :mod:`domdf_python_tools.stringlist`.
185
176
"""
186
177
187
178
def __str__ (self ) -> str :
@@ -194,6 +185,8 @@ class HasHead(Protocol):
194
185
:class:`typing.Protocol` for classes that have a ``head``.
195
186
196
187
This includes :class:`pandas.DataFrame` and :class:`pandas.Series`.
188
+
189
+ .. versionadded:: 0.8.0
197
190
"""
198
191
199
192
def head (self : "FrameOrSeries" , n : int = 5 ) -> "FrameOrSeries" :
0 commit comments