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:
1 parent
2b2c665eb6
commit
23a0721d8d
1 file changed
+1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user