You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing name resolution issues with variable k in the following example. And it happens only if I try to make array of dicts. For array of arrays variable k resolves fine. ([[k, v] for k, v in _data] and {k: v for k, v in _data} works as expected)
1. Minimal reproduce step (Required)
_data = {
"a": 'foo'
"b": 'bar'
}
r = [{k: v} for k, v in _data]
2. What did you expect to see? (Required)
r:
- a: foo
- b: bar
3. What did you see instead (Required)
r:
- k: foo
- k: bar
4. What is your KCL components version? (Required)
v0.7.0, v0.7.5
The text was updated successfully, but these errors were encountered:
Bug Report
I'm facing name resolution issues with variable
k
in the following example. And it happens only if I try to make array of dicts. For array of arrays variablek
resolves fine. ([[k, v] for k, v in _data]
and{k: v for k, v in _data}
works as expected)1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your KCL components version? (Required)
v0.7.0, v0.7.5
The text was updated successfully, but these errors were encountered: