This analysis of libcst vs refactor is incomplete. I probably won't come back and complete it (maybe your case warrants more analysis than my case did).
I had a difficult time with refactor
a while back, so I recently tried libcst
.
I couldn't remember exactly why I had a difficult time, maybe I just didn't sleep well the night before or some kind of non-reason like that.
Rather than justify this to myself, I just went with libcst
.
I ended up with this: