As a minimum case, I have an Example class that works like in abstract capacity for a number of other classes.
class Example(object): def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) class Test(Example): def __init__(self, foo='bar'): super(Test, self).__init__(foo=foo)
In the real case, Example does more.
Is there a way for Test to tell PyCharm that Test will have one Test.foo field and even better, tell it that foo is expected to be a string?
To be clear, consider delegating field settings from Example to Test .
The closest I got is @ivar Epydoc, but I can't get it to work
source share