This commit is contained in:
Woosuk Kwon committed 2023-02-14 01:19:27 +00:00
1 parent e40fa136aa
commit c574f19506
1 file changed
+1 -1
+1 -1
View File
@@ -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