Open davidorme opened 9 months ago
I think the switch makes sense (provided that it doesn't entail too much work). Just in the sense that a context managers are standard python
syntax, whereas I lost a bit of time due to not paying enough attention to the exact placement of FORMATTER.push()
and pop()
statements
We could potentially avoid all the:
By defining a context manager:
I think this is clearer, although makes indentation in the code deeper.