Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incorrect type in docstring for second argument of MQTT.add_topic_callback(..) #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
garrettheath4 opened this issue Aug 10, 2021 · 2 comments

Comments

@garrettheath4
Copy link
Contributor

The method signature of MQTT.add_topic_callback(..) on line 367 of adafruit_minimqtt.py is:

    def add_topic_callback(self, mqtt_topic, callback_method):
        """Registers a callback_method for a specific MQTT topic.
        :param str mqtt_topic: MQTT topic identifier.
        :param str callback_method: Name of callback method.
        """

As you can see, the docstring indicates that both method arguments are strings. I believe this is an error though. Shouldn't the second argument callback_method be a method instead of a string?

@brentru
Copy link
Member

brentru commented Aug 10, 2021

Correct, it should be a method. Could you submit a Pull Request fixing this?

@garrettheath4
Copy link
Contributor Author

Created PR #89. Sorry I should have just done that from the beginning, lol.

rtwfroody pushed a commit to rtwfroody/Adafruit_CircuitPython_MiniMQTT that referenced this issue Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants