#1052328 python3-requests: Error with class requests.JSONDecodeError is missing

#1052328#5
Date:
2023-09-20 14:55:50 UTC
From:
To:
Dear Maintainer,

In python3-requests 2.25.1, the class JSONDecodeError is missing, if i
run this :

python3 -c 'import requests; print(requests.JSONDecodeError)'

I have this error :
Traceback (most recent call last):
   File "<string>", line 1, in <module>
AttributeError: module 'requests' has no attribute 'JSONDecodeError'

This issue has been reported on python repository here :
https://github.com/python/typeshed/issues/7072
and this issue have fix here :
https://github.com/python/typeshed/pull/7171

This issue has been fixed in python3-requests 2.28 in Debian 12, but can
you backport this changes on Debian 11 ?

Best Regards.