DEV Community

Discussion on: Confused by Python self scope

Collapse
 
raigaurav profile image
Gaurav Rai

One thing I noticed while using super is - in pycharm it add parameters automatically but in VS code it doesn't.
Try it like -
super(child, self).__init__()
Though this is 2.x style but I it working in such scenorio.
Better way is to use @abstractmethod or something like - stackoverflow.com/a/57102294/2001559

P.S> I am also new to this world and learning

Collapse
 
thibaultduponchelle profile image
Tib

This super variant is not working for me (python3.7)