The following forum message was posted by fabioz at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4388159:

You can use an isinstance assert to check it...
E.g.: assert isinstance(p, module.AnotherClass)

but it won't work for your use-case (pydev will be able to resolve p in the
same scope where the isinstance was used, but can't 'see' that self.p was of
the same type that p (which had the assert used).

Please add a feature request for that.

Cheers,

Fabio

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to