Skip to content

Commit

Permalink
docstring for +expression
Browse files Browse the repository at this point in the history
  • Loading branch information
HighDiceRoller committed Aug 19, 2024
1 parent 72fb5d3 commit 775a2c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/icepool/expression/multiset_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]':
Expand Down

0 comments on commit 775a2c0

Please sign in to comment.