Closed duzumaki closed 1 year ago
@duzumaki are you able to submit a PR that fixes this?
My guess is the fix is to not run a ParentNodeProvider
on a Module node(which is what self.report()
ends up doing if you follow the calls) because what's the parent of a Module
node, nothing I assume.
and making sure to still yield the module's header comments
I'll get a pr up and see what the fixit team thinks about it
Just linking the PR to the issue here. https://github.com/Instagram/Fixit/pull/368
Doing this
same with
or you can do (which is what report() ends up calling)
results in a metadata libcst error this:
I've tried it with other nodes and module seems to be the only one causing this