hotfix: actually fix pylint, it's a python 3.10 issue

This commit is contained in:
George Hotz
2024-12-06 13:53:46 +08:00
parent b28d660172
commit e2fe7f0d2f

View File

@@ -28,7 +28,8 @@ if __name__ == "__main__":
code_str = '\x00'.join(flatten(ret))
print(f"code has {len(code_str)} chars")
print(f"code has {code_str.count("\n")} newlines")
newline_count = code_str.count('\n')
print(f"code has {newline_count} newlines")
encoded = tokenizer.encode(code_str)
print(f"code has {len(encoded)} tokens")