Python Intellisense

When passing an object as parameter, I dont see any intellisense e.g

def test(myCar ):
myCar.

MyCar should list two properties. however MyCar seems to be of another type. I even registered myCar as a global item

Now if I call myCar outside that function, the intellisense works.

image

Hi Alex,

I assume you’re using PythonNETParser here and registered a C# object of type MyCar, or declared Car Python object in Car.py module.

In your code, the type of parameter myCar inside the function test cannot be determined, as it’s just passed by name.

In Python 3.5 they introduced TypeHints

We’re going to support this feature in our PythonNETParser in the next update.

for it to work the test function needs to be declared like this:
def test(myCar:Car)

Kind regards,
Dmitry

When will you be updating to support that feature? We are evaluating the product and we need this feature.

Thanks,

Hi Alex,

Support for TypeHints is going to be included in the coming major update, we can also push it to the coming NuGet update, which is expected sometime next week.

Kind regards,
Dmitry

Hi Alex,

We have just released an update to NuGet (version 8.1.12), where type hints are implemented for the function parameters and return types.

Kind regards,
Dmitry