question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`tomllib` is considered as third-party lib in py3.11 but it is built-in now

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
anderskcommented, Dec 15, 2022

No, it’s because #2024 had bugs.

0reactions
bszonyecommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.11 Preview: TOML and tomllib - Real Python
Read TOML files with the new tomllib module; Write TOML with third-party libraries and learn why this functionality is not included in tomllib...
Read more >
Support for python 3.11 · Issue #1996 · PyCQA/isort - GitHub
when I select python 3.11.0 as interpreter. ... tomllib is considered as third-party lib in py3.11 but it is built-in now #2007.
Read more >
tomllib — Parse TOML files — Python 3.11.1 documentation
Source code: Lib/tomllib This module provides an interface for parsing TOML (Tom's Obvious Minimal Language, https://toml.io). This module does not support ...
Read more >
Support for Parsing TOML in the Standard Library : r/Python
Python 3.11 will now have tomllib - Support for Parsing TOML in the ... to rely on a 3rd party toml lib, making...
Read more >
How to Use Python 3.11's New TOML Parser, tomllib
There are third-party modules for parsing TOML files, but Python 3.11 will include one in the standard library so that all Python programs ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found