type check error on add_exception_handler()
#2842
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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