Added assert in the be function in the "accounting.utils.cast" module, to insure the correctness of the expression received.
This commit is contained in:
parent
2b2c665eb6
commit
23a0721d8d
@ -31,6 +31,7 @@ def be(expression: t.Any) -> sa.BinaryExpression:
|
||||
:param expression: The binary expression.
|
||||
:return: The binary expression itself.
|
||||
"""
|
||||
assert isinstance(expression, sa.BinaryExpression)
|
||||
return expression
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user