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:
		| @@ -31,6 +31,7 @@ def be(expression: t.Any) -> sa.BinaryExpression: | |||||||
|     :param expression: The binary expression. |     :param expression: The binary expression. | ||||||
|     :return: The binary expression itself. |     :return: The binary expression itself. | ||||||
|     """ |     """ | ||||||
|  |     assert isinstance(expression, sa.BinaryExpression) | ||||||
|     return expression |     return expression | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user