Python - Numbers Python - Booleans Python - Control Flow Python - Decision Making Python - If Statement Python - If else Python - Nested If Python - Match-Case Statement Python - Loops Python - for Loops Python
Nested dicts: >>>fromunflattenimportunflatten >>> unflatten({'foo.bar':'val'}) {'foo': {'bar': 'val'}} Nested list: >>> unflatten({'foo[0]':'x','foo[1]':'y'}) {'foo': ['x', 'y']} Nested lists and dicts, intermixed: ...
calling translate also results in in exception because in _validate_translation function result.strip() is trying to strip a list. For some reason the returned value from the api changed to a very nested list. quillfires commented Mar 18, 2021 I keep getting the same error when calling det...
python3.11/site-packages/pyinfra/api/operation.py", line 103, in <listcomp> return [line for type_, line in self._combined_output_lines if type_ in types] ^^^ TypeError: cannot unpack non-iterable OutputLine object [infra.host] Unexpected error in Python callback: TypeError('cannot unpac...