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

Closed
@garrettheath4

Description

@garrettheath4

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions