From f3b69450af5169a544ade2e4fb935221f749a804 Mon Sep 17 00:00:00 2001 From: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com> Date: Wed, 17 Jul 2024 05:27:52 +0300 Subject: [PATCH] [multiset] total() is a property --- solve/multiset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/solve/multiset.py b/solve/multiset.py index 687443f..f8d2d49 100644 --- a/solve/multiset.py +++ b/solve/multiset.py @@ -36,6 +36,7 @@ def elements(self, /) -> Iterator[T]: def __len__(self, /) -> int: return self._counter.__len__() + @property def total(self, /) -> int: """ Returns the total number of elements in this multiset.