Refactor class method for property using Pycharm
I have the following class:
class Dogs(object):
def __init__(self):
self.names = []
self.breeds = set()
def number(self):
return len(self.names)
I want to change number
as a property. This means that I also want to change all of his customs. Does PyCharm have refactoring tools built into it? It seems according to this problem .
At this point, I do "find all usages" and then manually commit each instance. If there is no dedicated refactoring tool to change the method for a property, is there a better way to use "find all uses"?
+3
source to share
No one has answered this question yet
Check out similar questions: