bpo-43780: Sync with importlib_metadata 3.10 by jaraco · Pull Request #25297 · python/cpython
I realize I might be able to provide more context.
python/importlib_metadata#289 shows the change where the deprecation was introduced (and the change that would need to be backed out to remove the deprecation if needed).
Here's how the deprecation implemented here manifests:
$ ./python.exe -W error
>>> import importlib.metadata as md
>>> eps = md.entry_points()
>>> eps['group']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jaraco/code/public/cpython/Lib/importlib/metadata.py", line 300, in __getitem__
self._warn()
DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
>>> eps.get('group', ())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jaraco/code/public/cpython/Lib/importlib/metadata.py", line 304, in get
flake8_bypass(self._warn)()
DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
It occurs to me looking at those tracebacks the stacklevel may need to be tweaked to improve the error message.