How to "statically type" an instance of class that I pass to a method of other 
instance?

I suppose there shall be some kind of method decorator to treat an argument as 
an instance of class?

Generally it is needed so IDE (PyCharm) can auto-complete instance's methods 
and properties.

Pseudo-python-code example:

i = MyClass()

xxx(i, 1, 2);

...
def xxx(self, MyClass myclass, number, foobar):
   myclass.classsmethod() #myclass - is an instance of known class
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to