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
Test cases like check("""f'{f"hello"}'""") fail. This is somewhat tricky to implement and it's not very pretty code, so I'm going to not worry about it for now.
The text was updated successfully, but these errors were encountered:
hauntsaninja
added a commit
to hauntsaninja/ast_decompiler
that referenced
this issue
Aug 21, 2017
Since there is no plan to fix this in the near future (see issues JelleZijlstra#5),
rather than fail mysteriously, we should be explicit about our (lack of)
intention.
* refactor visit_FormattedValue, visit_JoinedStr
The idea here is that children nodes should be responsible for their own
rendering, even if it is dependent on their parents. This is consistent
with design choices elsewhere in ast_decompiler. The change also means
that self.node_stack reflects the truth, which is what caused the bug in
a5bd70e.
* raise NotImplementedError on nested f-strings
Since there is no plan to fix this in the near future (see issues #5),
rather than fail mysteriously, we should be explicit about our (lack of)
intention.
* fix f-string on {}-like objects
Add space so that we don't accidentally escape curly braces. Additional
test cases added.
Test cases like
check("""f'{f"hello"}'""")
fail. This is somewhat tricky to implement and it's not very pretty code, so I'm going to not worry about it for now.The text was updated successfully, but these errors were encountered: