get autocomplete to recognise object type python (wing ide) -


I takes a custom object as a parameter to a function.

I need to use several of the members of the objects inside the function.

I get how IDE to identify / claim that the object type is right so that it will allow AutoComplete for members of objects.

  class MyClass: variable1 = 1 def function1 (self): out of print ( "Hello") top class def myNewFunction (themyclassobject) from # Function: try: # will work in, but Will not auto complete, because the Python does not recognize the parameter type. themyclassobject.function1 () except e exceptions, such as print (themyclassobject.variable1): print (e) #create object MyInstance = MyClass () #this myinstance.function1 () Print (myinstance.variable1) autocomplete #for perfection myNewFunction (MyInstance) # Paithon worry that it might be my Nuvankshn ( "Hello")  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -