Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Fix IB type annotation in the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Aug 24, 2023
1 parent de90150 commit 0d94ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ib_insync/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d94ccd

Please sign in to comment.