Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1506

Add type hint to log_raise_400

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      We do capture or log 400 (BadRequest) client errors by default. However, sometimes we wish to do that. Hence, we have a helper function called log_raise_400 which logs an error message and then raises a 400 error. Note that this function always raises and exception, however pycharm or other type checkers cannot detect this and give lots of false positives like.

      However, this is not possible.

      Add a type hint to the log_raise_400 function so that these false positive warnings can be eliminated.

            nikita_shrivastava nikita_shrivastava
            kartik1712 amCap1712
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package