type check error on add_exception_handler()
#2842
Replies: 1 comment
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use add_exception_handler() to register a custom exception handler, Pylance raise a warning
"Exception" is not assignable to "ValidationException"
My code:
Should we consider using TypeVar to resolve the type checking issue, or am I using it incorrectly?
Possible change
after change:
Beta Was this translation helpful? Give feedback.
All reactions