WhiteMemory99 / Intellij-Python-Inlay-Params

A PyCharm plugin that implements inlay parameter and type annotation hints for Python.
https://plugins.jetbrains.com/plugin/19538
MIT License
36 stars 6 forks source link

__Init__(self, arg) #30

Closed Karim-53 closed 1 year ago

Karim-53 commented 1 year ago

Hi, thanks for this great plugin

Just a small bug: the plugin does not detect self.

image

WhiteMemory99 commented 1 year ago

Hello. The thing is that you're not supposed to call your parent class constructor directly most of the time. Use the super() built-in function to solve your problem in a nice and supported way.

super().__init__(app, name_value_list, x_text, y_test, path=path)

Still, I'm gonna look for a way to support direct calls like that in the future updates.