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
Describe the issue: Because of the @singledispatchmethodClient._register_plugin (which unconditionally raises TypeError in the base implementation), pyright infers that Client.register_plugin (and therefore also Client.forward_logging) never return.
Currently we only have mypy in our linting configuration here, we don't use pyright. If people want to make PRs to improve type hinting specifically for pyright I would be happy to review them, but I don't think it's something we would actively try and support.
Activity
jacobtomlinson commentedon Jan 20, 2026
Currently we only have
mypyin our linting configuration here, we don't usepyright. If people want to make PRs to improve type hinting specifically forpyrightI would be happy to review them, but I don't think it's something we would actively try and support.moi90 commentedon Jan 20, 2026
Related: microsoft/pyright#988
moi90 commentedon Mar 3, 2026
@jacobtomlinson It seems to be enough to add a return type annotation, see #9201.