Commit bfec0e7
committed
Improve warning for case where data kwarg entry is ambiguous.
A call like `plot("x", "y", data={"x": ..., "y": ...})` currently
results in a warning suggesting to use a 3-arg call or renaming the
entry, because "y" is ambiguous.
Renaming the entry is not always an option (if you do not control
'data'), and it may not be obvious how to do a 3-arg call that just uses
the normal property cycle. As it turns out, passing an empty string
works, so document that possibility.1 parent 52aa26b commit bfec0e7
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
0 commit comments