How to alias a type used in a class before it is declared?
How to alias a type used in a class before it is declared? Question: I have code similar to this example import typing class C(): def __init__(self, callback: typing.Callable[[C], int]): self._callback = callback def getCallback() -> typing.Callable[[C], int]: return self._callback class C2(): def __init__(self, cInstance: C): self._cInstance = cInstance def f() -> typing.NoReturn: self._cInstance.getCallback()(self.cInstance) and …