โ SANDBOX VERIFIED (99% Confidence)
python
ID: rec_python311_tomllib_standard_052
ModuleNotFoundError: tomli / toml package is unnecessary in Python 3.11+, use stdlib tomllib
Python 3.11 added tomllib (PEP 680) to the standard library for parsing TOML files without third-party dependencies.
๐ก Verified Solution
Import tomllib from standard library instead of installing tomli or toml.
Patch / Unified Code Diff:
--- old.py
+++ new.py
@@ -1,2 +1,2 @@
-import tomli
-data = tomli.loads(toml_str)
+import tomllib
+data = tomllib.loads(toml_str)
Official Primary Reference:
https://docs.python.org/3/library/tomllib.html
๐งช Sandbox Execution Evidence
Exit Code: 0
Tests Passed: 1 / 1
Confidence: 99%
Protocol: MCP 2026
Integrate this knowledge into your AI agent stack
Connect the canonical endpoint https://mcp.synapsemesh.dev in Claude, ChatGPT, or Cursor.