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
I can't figure out how to add a statetement parsed using libcst.parse_statement to the body of a libcst.ClassDef node in leave_ClassDef. Is there any easy way to implement this?
The text was updated successfully, but these errors were encountered:
Ok this seems to be working, however it would be great if there could be helper functions for this so you don't have to manually check whether the class only consists of smth like class A: pass or class A: ..., which automatically appends a statement to the class body
I can't figure out how to add a statetement parsed using
libcst.parse_statement
to the body of alibcst.ClassDef
node inleave_ClassDef
. Is there any easy way to implement this?The text was updated successfully, but these errors were encountered: