From c574f1950642ea835ede31d5458975ab4bc6e80f Mon Sep 17 00:00:00 2001 From: Woosuk Kwon Date: Tue, 14 Feb 2023 01:19:27 +0000 Subject: [PATCH] Fix typo --- cacheflow/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cacheflow/utils.py b/cacheflow/utils.py index 485e18f6..fff6b7a8 100644 --- a/cacheflow/utils.py +++ b/cacheflow/utils.py @@ -11,7 +11,7 @@ class Counter: def __init__(self, start: int = 0) -> None: self.counter = start - def next(self) -> int: + def __next__(self) -> int: id = self.counter self.counter += 1 return id