Refactor: Move top-level module function into a class.

Hello!

I'm new to PyCharm. I'm using Version 2023.2.5 (Professional Edition) on a Windows 11 operating system.

I'm trying to accomplish what I thought was a simple refactoring in PyCharm: Convert a top-level function to a method of a class in the same file (or in a different file). I don't see a way to do this, and I've been poking around on the internet for a bit without a solution.

I'm assuming this can't be done, but I wanted to ask here. Thanks!

Landon

0
2 comments

Hi,

Unfortunately, this is not implemented at the moment. There is a feature request about this functionality – PY-49400.

0

Thanks for the quick response.

0

Please sign in to leave a comment.