diff --git a/docs/source/conf.py b/docs/source/conf.py index b3f3f48f3a4..231d3cad416 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -326,7 +326,8 @@ def inject_weight_metadata(app, what, name, obj, options, lines): lines[:] = [ "The model builder above accepts the following values as the ``weights`` parameter.", - f"``{obj.__name__}.DEFAULT`` is equivalent to ``{obj.DEFAULT}``.", + f"``{obj.__name__}.DEFAULT`` is equivalent to ``{obj.DEFAULT}``. You can also use strings, e.g. " + f"``weights='DEFAULT'`` or ``weights='{str(list(obj)[0]).split('.')[1]}'``.", ] if obj.__doc__ != "An enumeration.":