chore: fix types error in pydump

This commit is contained in:
Li Jie
2024-11-06 11:10:57 +08:00
parent d0217e62f0
commit 803d1de5db

View File

@@ -38,7 +38,7 @@ func main() {
items := cjson.Array() items := cjson.Array()
mod := py.ImportModule(pyLib) mod := py.ImportModule(pyLib)
keys := mod.ModuleGetDict().DictKeys() keys := mod.ModuleGetDict().DictKeys()
for i, n := uintptr(0), keys.ListLen(); i < n; i++ { for i, n := 0, keys.ListLen(); i < n; i++ {
key := keys.ListItem(i) key := keys.ListItem(i)
val := mod.GetAttr(key) val := mod.GetAttr(key)
doc := val.GetAttrString(c.Str("__doc__")) doc := val.GetAttrString(c.Str("__doc__"))