Is it possible to propagate type hinting to overridding methods?
Say, I have the following classes:
class Student:
def study():
pass
class Option:
self.option_value
class BaseChoice:
def make_choice(self, student, options):
"""
:type student: Student
:type options: list[Option]
"""
class RationalChoice(BaseChoice):
def make_choice(self, student, options):
pass
When I'm inside RationalChoice.make_choice pycharm does not suggest autocomplete for options properties/methods, however it picks right hint for student. The obvious workaround would be to just copy the docstring, but I'm going to have tens of different BaseChoice descendants, so it's just not practical.
I'm using PyCharm 3.1.1, both Community and Professional versions are affected.
Is it something completely missing in python itself, or just in PyCharm?
baris of type Bar even without any hints. - Wander Nauta