Add type hints and docs and fix bugs in djblets.integrations.errors.
Review Request #12992 — Created April 27, 2023 and submitted — Latest diff uploaded
This updates
djblets.integrations.errorsto include type hints and to
add some docstrings that were previously missing.It also fixes an issue with using
IntegrationNotRegisteredError. This
could be called with aNoneintegration ID, which produced a poor
error message. To avoid introducing a new error and affecting consumers,
this class now provides a more specific error message with aNoneID.
Tested along with consumers and suppliers of this error.
Unit tests pass.