I have code a little like this:
def alternateConstructor(clazz, x):
self = clazz()
def frob(self, y):
thing = Things.alternateConstructor(x)
and I'd like pycharm to be able to infer that "thing" an instance of "Things", but it doesn't seem to know that. Is there any way I can annotate the alternateConstructor to help it out?