With python3 we no longer need to explicitly set the parent class when calling super
:
def __init__(self):
super().__init__()
But it seems that PyCharm doesn't know it, because when I try to autocomplete super
for some method, it uses old style and I receive this:
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.
CodePudding user response: