I've noticed it works with this format:
class MyClass:
def method(self, a, b):
#: :type a: ClassA
#: :type b: ClassB
It's also a bit more readable if you ask me. I've only been doing Python as a hobby for about a week, so don't take my word for it.
Nice thing about this format is that it works in for pretty much all type hinting (examples from PyDev manual):
class MyClass:
def method(self, lst):
#Can be on the same line
for a in lst: #: :type a: GUITest
a.;
or
class MyClass:
def method(self, lst):
#Or on the line before
#: :type a: GUITest
for a in lst:
a.;