mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
It seems that code using HTTPError previously worked by accident because we used to accept arbitrary keyword arguments when instantiating BaseException, or any subclass of BaseException (see https://github.com/python/typeshed/pull/2348). This commit adds in the correct constructor (which also lets the user specify the arguments in keyword-argument form). Note: I'm not very familiar with the urllib libraries, so I opted to just add the signature and leave it up to somebody else to fill in the types.