• 
      

    Add type hints and docs and fix bugs in djblets.integrations.errors.

    Review Request #12992 — Created April 27, 2023 and submitted

    Information

    Djblets
    release-3.x

    Reviewers

    This updates djblets.integrations.errors to 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 a None integration 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 a None ID.

    Tested along with consumers and suppliers of this error.

    Unit tests pass.

    Summary ID
    Add type hints and docs and fix bugs in djblets.integrations.errors.
    This updates `djblets.integrations.errors` to 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 a `None` integration 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 a `None` ID.
    7acc55f3669a9d545e42305fdf1765790d8ce102
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.x (9ee5652)