diff --git a/ib_insync/wrapper.py b/ib_insync/wrapper.py index e55b86a1..21fad639 100644 --- a/ib_insync/wrapper.py +++ b/ib_insync/wrapper.py @@ -56,7 +56,7 @@ def __init__(self, reqId: int, code: int, message: str): class Wrapper: """Wrapper implementation for use with the IB class.""" - ib: IB + ib: 'IB' accountValues: Dict[tuple, AccountValue] """ (account, tag, currency, modelCode) -> AccountValue """ @@ -129,7 +129,7 @@ class Wrapper: _logger: logging.Logger _timeoutHandle: Union[asyncio.TimerHandle, None] - def __init__(self, ib: IB): + def __init__(self, ib: 'IB'): self.ib = ib self._logger = logging.getLogger('ib_insync.wrapper') self._timeoutHandle = None