From 775a2c014985ba99ebb08a02bd84fd81847ed724 Mon Sep 17 00:00:00 2001 From: Albert Julius Liu Date: Sun, 18 Aug 2024 19:26:03 -0700 Subject: [PATCH] docstring for `+expression` --- src/icepool/expression/multiset_expression.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/icepool/expression/multiset_expression.py b/src/icepool/expression/multiset_expression.py index 717917f8..fd2e4847 100644 --- a/src/icepool/expression/multiset_expression.py +++ b/src/icepool/expression/multiset_expression.py @@ -506,6 +506,7 @@ def modulo_counts(self, n: int, /) -> 'MultisetExpression[T_contra]': return self % n def __pos__(self) -> 'MultisetExpression[T_contra]': + """Sets all negative counts to zero.""" return icepool.expression.KeepCountsExpression(self, '>=', 0) def __neg__(self) -> 'MultisetExpression[T_contra]':