Skip to content
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

Improve the docstring of abstract.CloudEvent #247

Open
ncouture opened this issue Dec 22, 2024 · 0 comments
Open

Improve the docstring of abstract.CloudEvent #247

ncouture opened this issue Dec 22, 2024 · 0 comments

Comments

@ncouture
Copy link

ncouture commented Dec 22, 2024

The getitem of this class goes on to describe that:

The `data` of the event should be accessed by the `.data` accessor rather
than this mapping.

providing a reason and perhaps a reference to an example would help developers understand why event.get() is discouraged by this helper method.

For instance, there is confusion in how the private _attributes data should be accessed expressed in #246.

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

1 participant