Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions broqer/operator_overloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Any as Any_

# pylint: disable=cyclic-import
import broqer
from broqer import Publisher
from broqer.operator import Operator

Expand Down Expand Up @@ -125,9 +124,9 @@ def apply_operator_overloading():
'__getitem__', '__floordiv__', '__truediv__'):
def _op(operand_left, operand_right, operation=method):
if isinstance(operand_right, Publisher):
return broqer.op.CombineLatest(operand_left, operand_right,
map_=getattr(operator,
operation))
from broqer.op import CombineLatest
return CombineLatest(operand_left, operand_right,
map_=getattr(operator, operation))
return MapConstant(operand_left, operand_right,
getattr(operator, operation))

Expand Down