Skip to content

Commit 773c377

Browse files
committed
Fix memoryview iteration in whats_left.py
memoryview has no __iter__ and instead relies on the __getitem__ iteration.
1 parent 77b821a commit 773c377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whats_left.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def gen_methods():
200200
"type(range(0).__iter__())",
201201
"type(str().__iter__())",
202202
"type(tuple().__iter__())",
203-
"type(memoryview(bytearray(b'0')).__iter__())",
203+
"type(iter(memoryview(bytearray(b'0'))))",
204204
]
205205

206206
methods = {}

0 commit comments

Comments
 (0)