venv311\Lib\site-packages\tweepy\api.py:7
<directory>\venv311\Lib\site-packages\tweepy\api.py:7: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
import imghdr
Expected Results
No deprecation warning
Actual Results
Deprecation warning
Twitter API Access Plan
Free
Tweepy Version
Version: 4.14.0
Checklist
[X] I have searched for duplicate issues.
[X] If applicable, I have shown the entire traceback.
[X] If applicable, I have removed any visible credentials from my code and/or screenshots.
Additional Context
Suggestion would be to use only mimetypes to detect file type (currently both imghdr and mimetypes are used)
Summary
imghdr is deprecated for removal in python 3.13
Reproduction Steps
Import the library in python 3.11
Minimal Reproducible Example
Expected Results
No deprecation warning
Actual Results
Deprecation warning
Twitter API Access Plan
Free
Tweepy Version
Version: 4.14.0
Checklist
Additional Context
Suggestion would be to use only mimetypes to detect file type (currently both imghdr and mimetypes are used)