@@ -279,11 +279,10 @@ def register_unstructure_hook_factory(
279279 """
280280 Register a hook factory for a given predicate.
281281
282- A predicate is a function that, given a type, returns whether the factory
283- can produce a hook for that type.
284-
285- A factory is a callable that, given a type, produces an unstructuring
286- hook for that type. This unstructuring hook will be cached.
282+ :param predicate: A function that, given a type, returns whether the factory
283+ can produce a hook for that type.
284+ :param factory: A callable that, given a type, produces an unstructuring
285+ hook for that type. This unstructuring hook will be cached.
287286 """
288287 self ._unstructure_func .register_func_list ([(predicate , factory , True )])
289288
@@ -326,11 +325,10 @@ def register_structure_hook_factory(
326325 """
327326 Register a hook factory for a given predicate.
328327
329- A predicate is a function that, given a type, returns whether the factory
330- can produce a hook for that type.
331-
332- A factory is a callable that, given a type, produces a structuring
333- hook for that type. This structuring hook will be cached.
328+ :param predicate: A function that, given a type, returns whether the factory
329+ can produce a hook for that type.
330+ :param factory: A callable that, given a type, produces a structuring
331+ hook for that type. This structuring hook will be cached.
334332 """
335333 self ._structure_func .register_func_list ([(predicate , factory , True )])
336334
0 commit comments