`typeshed/stubs/paho-mqtt/paho/mqtt/client.pyi` does not include properties added in v2.1.0
Causes errors of the type: "No attribute 'host' on paho.mqtt.client.Client [attribute-error]"
See: https://github.com/eclipse/paho.mqtt.python/commit/cc630888ab2cb3cba28f7e254e933692da399430
Looks like typeshed shipped in pytype is about 7 months old: https://github.com/python/typeshed/tree/a4cc79fbecac8d981152950dfad5cf625e0ac5ec. We should update that again. Can't make any promises about the timeline unfortunately.
I haven't tried it myself yet, but https://google.github.io/pytype/ says you can use the TYPESHED_HOME environment variable to point pytype to a custom checkout of typeshed. That should work as a workaround in the meantime.
They have a note on https://pypi.org/project/types-paho-mqtt/: "Note: The paho-mqtt package includes type annotations or type stubs since version 2.0.0.", I'm guessing this is on their end? https://github.com/eclipse-paho/paho.mqtt.python/issues/892
Hi, thank you for your report. Google is shifting its effort to a different approach for type checking apart from pytype, and we're not planning to put in any effort in the near future in pytype, so we'll close this issue. Please see the announcement here.