nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Add option to expand wildcard imports

Open jph00 opened this issue 3 years ago • 1 comments

E.g

from foo import *

...would be optionally exported to:

from foo import a,b

...if a and b were used in that module.

There's something a bit similar here we could borrow ideas from: https://github.com/fake-name/autoflake/blob/master/autostar.py

jph00 avatar Jun 07 '22 08:06 jph00

Per discussion with @dleen, also consider a tool which simply reports what symbols are used by an import, rather than replacing them.

jph00 avatar Jul 28 '22 21:07 jph00