Update div operator
This commit is contained in:
parent
4c322603d3
commit
834126e0d6
1 changed files with 2 additions and 2 deletions
|
@ -285,12 +285,12 @@ class Signal:
|
||||||
def __rmul__(self, other: ArrayLike | "Signal") -> "Signal":
|
def __rmul__(self, other: ArrayLike | "Signal") -> "Signal":
|
||||||
return self * other
|
return self * other
|
||||||
|
|
||||||
def __div__(self, other: ArrayLike | "Signal") -> "Signal":
|
def __truediv__(self, other: ArrayLike | "Signal") -> "Signal":
|
||||||
if isinstance(other, Signal):
|
if isinstance(other, Signal):
|
||||||
return self.operator_signal(other, "/")
|
return self.operator_signal(other, "/")
|
||||||
return self.operator_arraylike(other, "/")
|
return self.operator_arraylike(other, "/")
|
||||||
|
|
||||||
def __rdiv__(self, other: ArrayLike | "Signal") -> "Signal":
|
def __rtruediv__(self, other: ArrayLike | "Signal") -> "Signal":
|
||||||
if isinstance(other, Signal):
|
if isinstance(other, Signal):
|
||||||
return other.operator_signal(self, "/")
|
return other.operator_signal(self, "/")
|
||||||
return self.roperator_arraylike(other, "/")
|
return self.roperator_arraylike(other, "/")
|
||||||
|
|
Loading…
Reference in a new issue