Plugins and overloads don't interact well #7367
Labels
bug
mypy got something wrong
needs discussion
priority-0-high
topic-overloads
topic-plugins
The plugin API and ideas for new plugins
While working on our own plugin for self-checking proper types and
isinstance()
I have tried to useget_function_hook()
to emit some additional errors for overloaded functions. However this didn't work for three reasons:Messages
as a sign of successful matchThis issue can be fixed in three ways:
check_call()
may have anaccept()
call possibly triggering almost arbitrary error including a nested function call with bad argument type).check_argument_types()
and will be reset after return from everyaccept()
.I am leaning towards the last option, since it is most principled IMO.
cc @Michael0x2a
The text was updated successfully, but these errors were encountered: