Closed
Description
https://docs.python.org/3/library/tomllib.html
It can be a part of an "epic" called "Support for python3.11" #1996
Behavior before:
@@ -1,8 +1,10 @@
-import tomllib
from pathlib import Path
from typing import Generator
+import tomllib
...
Behavior after:
The message that everything is OK
Version: 5.10.1
Metadata
Metadata
Assignees
Labels
No labels
Activity
NickVeld commentedon Nov 23, 2022
Workarounds:
pyproject.toml
setup.cfg
Action comments (not recommended)
NickVeld commentedon Nov 23, 2022
Maybe built-in
tomllib
support can be enabled bypy_version=311
when it is added #2008andersk commentedon Dec 12, 2022
This seems to have been fixed by #2024 (not released yet) with
py_version=311
.staticdev commentedon Dec 12, 2022
@andersk released, 5.11.0.
bszonye commentedon Dec 15, 2022
This is still broken for me in isort 5.11.2 (on Ubuntu 22.10). I suspect that's because they're distributing Python 3.11.0rc2, which has the new feature, but that version is not technically
>=3.11
. I ran into that just the other day with another tool. I suspect this affects anybody running a pre-release version of Python 3.11.andersk commentedon Dec 15, 2022
No, it’s because #2024 had bugs.