Skip to content

Inconsistente documentation for return type of subscription request #251

Closed
@Areontar

Description

@Areontar

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • [ x] I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
The documentation in the iotjobs.py class and the __init__.py are inconsistent. One claims to return A future with None if the request is successful while the other claims to return the int representing the QoS of the request. The latter is the right one.

  • iotjobs.py line 283 is where the doc is
  • this function calls _subscribe_operation
  • leads to __init.py__ which describes a different return (but the correct one)

SDK version number
1.7.1

Platform/OS/Device
unix

To Reproduce (observed behavior)
N/A documentation error

Expected behavior
the documentation of the called function should state the actual state of what will be returned

Logs/output
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.pending-releaseThis issue will be fixed by an approved PR that hasn't been released yet.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions