You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JelleZijlstra There are lots of places where we raise exception. This is common practice. Any work around? In django codebase, raising exception is a common thing.
Mypy can't check that exceptions are correctly caught or annotated, so your best is to document them in a docstring or invent some custom way of annotating them (but that won't be checked by mypy).
On running mypy
Ideally mypy should not raise any error, because I am handling the case when exception is raised.
The text was updated successfully, but these errors were encountered: