@@ -119,6 +119,9 @@ def apply_patch(doc, patch, in_place=False, pointer_cls=JsonPointer):
119
119
By default patch will be applied to document copy.
120
120
:type in_place: bool
121
121
122
+ :param pointer_cls: JSON pointer class to use.
123
+ :type pointer_cls: Type[JsonPointer]
124
+
122
125
:return: Patched document object.
123
126
:rtype: dict
124
127
@@ -153,7 +156,7 @@ def make_patch(src, dst, pointer_cls=JsonPointer):
153
156
:param dst: Data source document object.
154
157
:type dst: dict
155
158
156
- :param pointer_cls: JSON pointer (sub) class.
159
+ :param pointer_cls: JSON pointer class to use .
157
160
:type pointer_cls: Type[JsonPointer]
158
161
159
162
>>> src = {'foo': 'bar', 'numbers': [1, 3, 4, 8]}
@@ -256,7 +259,7 @@ def from_string(cls, patch_str, pointer_cls=JsonPointer):
256
259
:param patch_str: JSON patch as raw string.
257
260
:type pointer_cls: str
258
261
259
- :param pointer_cls: JSON pointer (sub) class.
262
+ :param pointer_cls: JSON pointer class to use .
260
263
:type pointer_cls: Type[JsonPointer]
261
264
262
265
:return: :class:`JsonPatch` instance.
@@ -276,7 +279,7 @@ def from_diff(cls, src, dst, optimization=True, pointer_cls=JsonPointer):
276
279
:param dst: Data source document object.
277
280
:type dst: dict
278
281
279
- :param pointer_cls: JSON pointer (sub) class.
282
+ :param pointer_cls: JSON pointer class to use .
280
283
:type pointer_cls: Type[JsonPointer]
281
284
282
285
:return: :class:`JsonPatch` instance.
0 commit comments