From fdc6664670962cac3f20fdefe1aaa867854595f7 Mon Sep 17 00:00:00 2001 From: litlighilit Date: Sat, 29 Jun 2024 12:45:50 +0800 Subject: [PATCH] bypass: (PyStr,) == (string,) not compile --- src/pylib/builtins/dict.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylib/builtins/dict.nim b/src/pylib/builtins/dict.nim index a276d26e2..5b30e8a65 100644 --- a/src/pylib/builtins/dict.nim +++ b/src/pylib/builtins/dict.nim @@ -100,7 +100,7 @@ iterator iter*[K, V](self: PyDict[K ,V]): K = for i in iter(d): assert i == "a" for i in d: - assert i == ("a", 1) + assert i[0] == "a" and i[1] == 1 for i in self.keys(): yield i