I have this code:
pile = get_pile()
pile.spawn(func1)
pile.spawn(func2)
(var1, var2) = list(pile)
# :type MyClass
var1.do_something()
So, variable var1, which is returned by func1() is an instance of class MyClass. How do I tell my PyCharm that? I've tried with the upper comment and also several other approaches, but it always says that the type is unknown and autocomplete doesn't work.

I've had luck doing type hinting like this:
""" :type: MyClass """