@@ -1534,7 +1534,7 @@ def _replacer(data, key):
1534
1534
return key
1535
1535
1536
1536
1537
- def unpack_labeled_data (replace_names = None , replace_all_args = False , label_namer = "y" ,
1537
+ def unpack_labeled_data (replace_names = None , replace_all_args = False , label_namer = None ,
1538
1538
positional_parameter_names = None ):
1539
1539
"""
1540
1540
A decorator to add a 'data' kwarg to any a function. The signature
@@ -1552,10 +1552,9 @@ def foo(ax, *args, **kwargs)
1552
1552
replace_all_args : bool, default: False
1553
1553
If True, all arguments in *args get replaced, even if they are not in replace_names.
1554
1554
NOTE: this should be used only when the order of the names depends on the number of *args.
1555
- label_namer : string, optional, default: 'y'
1555
+ label_namer : string, optional, default: None
1556
1556
The name of the parameter which argument should be used as label, if label is not set. If
1557
1557
None, the label keyword argument is not set.
1558
- NOTE: you MUST pass ``label_namer=None`` if the function can't handle a ``label`` kwarg!
1559
1558
positional_parameter_names : list of strings, optional, default: None
1560
1559
The full list of positional parameter names (excluding an explicit `ax`/'self' argument at
1561
1560
the first place and including all possible positional parameter in `*args`), in the right
0 commit comments