Skip to content
Snippets Groups Projects
Commit 71a13882 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix iterator for python 3.13 (was already non-compliant before)

parent f1f27d07
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class CJsonObject(CJsonValue):
return self.get(key).as_string(max_length, min_length)
class _ArrayIterator:
class _ArrayIterator(Iterable[CJsonValue]):
def __init__(self, array: "CJsonArray"):
super().__init__()
......@@ -132,6 +132,9 @@ class _ArrayIterator:
self._i += 1
return ele
def __iter__(self):
return self
class CJsonArray(CJsonValue, Iterable[CJsonValue]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment