We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The following PDL program produces a backtrace and the output TypeError: unsupported operand type(s) for |: 'dict' and 'str'
TypeError: unsupported operand type(s) for |: 'dict' and 'str'
To Reproduce Use this program:
object: - defs: CONCLUSIONS: for: v: ["a", "b", "c"] repeat: data: ${ v }: ${ v }
Expected behavior Either {"a": "a", "b": "b", "c": "c"} or a meaningful error message.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Note: I originally wanted to use join: instead of object:, like this:
join:
object:
for: i: [1, 2] repeat: data: ${ i }: ${ i } join: as: object # "object" is invalid here
However, the as only allows arrays or strings or "lastOf"; there is no no dict key-value merge type.
as
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The following PDL program produces a backtrace and the output
TypeError: unsupported operand type(s) for |: 'dict' and 'str'
To Reproduce
Use this program:
Expected behavior
Either {"a": "a", "b": "b", "c": "c"} or a meaningful error message.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: