Replae `Field(default=None)` with reguler default value assignment
Open
Beginner friendly
Nobody has claimed this yet.
good-first-bug
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 65
Description
Related to https://github.com/mozilla/bugbug/pull/6736#discussion_r3996539625
Also, there are also some cases where only default= need to be dropped: https://github.com/mozilla/bugbug/blob/f786d08f857a3a2620ce9c3c601c3c8f5636cc15/libs/hackbot-runtime/hackbot_runtime/actions/bugzilla.py#L122-L131
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.
Research direction
Start with the linked discussion and inspect libs/hackbot-runtime/hackbot_runtime/actions/bugzilla.py at lines 122-131. Search the repository for Field(default=None) and the cases where only default= is present; done means those usages consistently use regular default value assignment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100