From 0d94ccd25ed9de1f99ba765c0b6654f6e20bfc78 Mon Sep 17 00:00:00 2001 From: Ewald de Wit Date: Thu, 24 Aug 2023 19:38:42 +0200 Subject: [PATCH] Fix IB type annotation in the wrapper --- ib_insync/wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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