使用python3,我们不再需要在调用super
时显式设置父类:
def __init__(self):
super().__init__()
但似乎PyCharm并不知道这一点,因为当我try 为某个方法自动完成super
时,它使用的是旧样式,我收到了这样的消息:
def setUp(self):
super(AutocompleteTestCase, self).setUp()
Is there any way to tell PyCharm to use new style, because I could not find one.
Editor -> General -> Code Completion doesn't provide any way to add/override custom rules.