sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Sourcery doesn't seem to refactor functions in functions

Open rhytnen opened this issue 5 years ago • 1 comments

Issue description or question

Code that sourcery would recactor is ignored if defined as a function inside another function

Sourcery Version

0 .3.0

Code editor or IDE name and version

Pycharm v2019.3

OS name and version

Windows 10

Here is a bit of a contrived example

image

image

rhytnen avatar Feb 10 '20 18:02 rhytnen

At the moment our analysis of variable usage in and around nested functions isn't complete, so we've disabled Sourcery for nested functions.

This is on our roadmap to address, but might take a little bit of time.

Hellebore avatar Feb 11 '20 10:02 Hellebore

This should now work.

Hellebore avatar Sep 16 '22 12:09 Hellebore