Closed wyuenho closed 2 years ago
Thank you for the PR! The idea is good, but I think you need to add a check on the parent. Maybe you can check isinstance(parent, typing.Callable)
to avoid getting up to module level?
isinstance(parent, typing.Callable)
I'm very confused by this comment lol, wut?
BTW, I've fixed the tests, and added one extra.
Thank you very much :hugs: I'll make a release in a few minutes
Not all for loops within a function body is a direct child of the function body
Closes #146