-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imghdr is deprecated and slated for removal in Python 3.13 #10440
Comments
Now we're using the And it's much better to use the |
Hi, With the public release of Python 3.11, the deprecation warning for Any idea when Thanks! |
I had forgotten about this issue -- thanks for the reminder Hugo! A |
Describe the bug
The
imghdr
module is deprecated in Python 3.11 by PEP 594 and is slated for removal in Python 3.13.imghdr
is used here to guess image mimetypes:sphinx/sphinx/util/images.py
Lines 50 to 55 in 31eba1a
The
imghdr
code is not very large (see here). It could either be vendored by Sphinx or pulled out to a package on PyPI if there's no alternative.Python version
Python 3.11.0.beta1
The text was updated successfully, but these errors were encountered: