コード例 #1
0
ファイル: contract.py プロジェクト: smartchris84/ib_insync
 def __eq__(self, other):
     return self.isHashable() and isinstance(other, Contract) and \
             self.conId == other.conId \
             or Object.__eq__(self, other)
コード例 #2
0
 def __eq__(self, other):
     return (self.conId and isinstance(other, Contract) and
             (self.conId == other.conId) or Object.__eq__(self, other))