Use tomllib on Python 3.11 by hauntsaninja · Pull Request #12305 · python/mypy
-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Conversation
hauntsaninja added 2 commits
1 similar comment
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
| """ | ||
| metadata_fnam = os.path.join(stub_dir, 'METADATA.toml') | ||
| if os.path.isfile(metadata_fnam): | ||
| # Delay import for a possible minor performance win. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine to remove it since configparser.py already unconditionally imports tomllib anyway.
This was referenced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters