gh-91058: Add what's new entry for the improvement in commit 7cfbb49fcd (#99198)

This commit is contained in:
Pablo Galindo Salgado 2022-11-07 13:36:48 +00:00 committed by GitHub
parent e02f1e2df9
commit be31ecf8b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -106,6 +106,16 @@ Improved Error Messages
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Did you mean to use 'from ... import ...' instead?
* :exc:`ImportError` exceptions raised from failed ``from <module> import
<name>`` statements now include suggestions for the value of ``<name>`` based on the
available names in ``<module>``. Contributed by Pablo Galindo in :gh:`91058`.
>>> from collections import chainmap
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'chainmap' from 'collections'. Did you mean: 'ChainMap'?
New Features
============