Import module instead of function on refactoring?

Answered

 Hi. I prefer importing of entire modules instead of only functions, as this supports readability. Much like the person posting here: https://softwareengineering.stackexchange.com/questions/187403/import-module-vs-from-module-import-function

However, the refactor-method in PyCharm seems to favour the function-only import strategy.

Is there a setting to make PyCharm import the full module instead of only the functions?

Best,

klyn

2
2 comments

Also interested in this feature. I always end up going back and cleaning up after a refactor (function or constant)

There's a section for refactoring settings:

A choice of "import entire module" would be much appreciated here.

 

Edit: created a feature request https://youtrack.jetbrains.com/issue/PY-43855

0

Hi,

There is no such feature at the moment.

Please feel free to submit a feature request about it to our issue tracker using the link https://youtrack.jetbrains.com/issues/PY

0

Please sign in to leave a comment.