Хабр Курсы для всех
РЕКЛАМА
Большая витрина: от крупнейших школ до частных авторов. Сравнивайте по цене, длительности, формату и выбирайте самый подходящий курс!
There is no established convention in the Python community for such comments, and we do not plan to introduce any convention of our own, because we don't expect it to gain any wide-spread community adoption (most people will see such comments as an unnecessary code clutter and would ask «why don't you go write Java instead?»).
foo = deserialize()
""" @type MyObject """
foo = deserialize()
...
""" @type MyObject foo""
foo = deserialize()
""" @type MyObject """
self.foo = deserialize()
""" @type MyObject """
foo = deserialize()
""" @type MyObject """
self.foo = foo
PyCharm 1.5: свежий апдейт IDE для Python/Django