Skip to content

Commit

Permalink
fixes #1835
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-push committed Oct 18, 2023
1 parent 6c69c82 commit e5718c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions covalent/_workflow/electron.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def get_op_function(
"-": operator.sub,
"*": operator.mul,
"/": operator.truediv,
"**": operator.pow,
}

def rename(op1: Any, op: str, op2: Any) -> Callable:
Expand Down Expand Up @@ -242,6 +243,9 @@ def __truediv__(self, other):
def __rtruediv__(self, other):
return self.get_op_function(other, self, "/")

def __pow__(self, other):
return self.get_op_function(self, other, "**")

def __int__(self):
return int()

Expand Down

0 comments on commit e5718c0

Please sign in to comment.