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:
依瑪貓 2023-03-15 23:23:01 +08:00
parent 2b2c665eb6
commit 23a0721d8d

View File

@ -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