Improve the docstring of abstract.CloudEvent
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Open cloudevents/abstract/event.py around lines 99-100 and inspect the getitem docstring. Read issue #246 for the reported confusion about accessing private _attributes data. Done means the docstring explains why event.get() is discouraged and includes a useful example or reference.
Written by the indexing model from the issue text.
Description
The getitem of this class goes on to describe that:
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 https://github.com/cloudevents/sdk-python/issues/246.
- Dominant language
- Python
- Stars
- 342
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudevents/sdk-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudevents/sdk-python#304 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cloudevents/sdk-python#300 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cloudevents/sdk-python#291 · 8 comments ·
-
question
Difficulty 3/5 1-2 days Newbie friendliness 45/100
cloudevents/sdk-python#246 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudevents/sdk-python#213 · 3 comments · 1 reaction ·
All issues in cloudevents/sdk-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-connect#1057 ·