gtalarico / ironpython-stubs

Autocomplete stubs for common IronPython/.NET libraries
Other
248 stars 80 forks source link

Intellisense does not work for "unknown" elements. #24

Closed jannisle closed 2 years ago

jannisle commented 3 years ago

Hi, thanks for providing this great tool :) I´m very pleased :)

But I run into a little problem with the intellisense. When pyCharm does not know which type my object has, it does not use intellisense and has no option to autocomplete.

I can put in if isinstance(element,type): and pyCharm shows intellisense now. image

If I don´t, it doesn´t: image

Is there any solution / workaround to this problem or am I doing something completely wrong? Casting an object with view = (DB.Elemt)view does not work.

Kind regards :)

PavelAltynnikov commented 2 years ago

Hi @jannisle. I don't know if this will work in pyCharm, but in the vs code you can designate the type like this image

jannisle commented 2 years ago

Works perfectly :) Thank you :)