DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
611 stars 302 forks source link

Make the initialize() example match its method signature #683

Closed mnaumann-plenty closed 3 years ago

mnaumann-plenty commented 3 years ago

The current provided example for the initialize() method: a) doesn't work, and b) does not conform to the method signature described immediately afterward. The suggested change yields a functional example and is conformant.

Requirements for Contributing to this repository

What does this PR do?

This PR provides a fix for a broken example.

Description of the Change

The change specifically corrects the expression of the 3rd and 4th function parameters in the example.

Alternate Designs

This was the least disruptive change to achieve a working example.

Possible Drawbacks

No negative side-effects. The example goes from non-working to working.

Verification Process

I use black for checking Python code. As strict as it is, it has no problem with the amended example.

Additional Notes

Not really -- the change is about as simple as anything can be in code.

Release Notes

Review checklist (to be filled by reviewers)