Commit 0d1592a
committed
Fix mypy error by conditionally setting plot_node["chart-var-name"] only when option is present
- The original `**{"chart-var-name": ...}` likely existed because chart-var-name contains a hyphen, so it cannot be passed as a normal keyword argument.
- New behavior: create node first, then only set plot_node["chart-var-name"] when user provided that option.
- Downstream code uses node.get("chart-var-name", None), so behavior is effectively the same for runtime logic.1 parent 3b6423a commit 0d1592a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | 215 | | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
0 commit comments