(code style) Refactor code with match/case
- Dominant language
- Python
- Stars
- 24
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
A lot of the code in the current implementation uses if-else chains but the python match/case statement (introduced in python 3.10) would fit better.
Task: Rewrite the code to use **match** statement - for example in the many cases where we have code that is conditional on the type such as:
```
if type(foo) == Bar:
...
elseif type()....
...
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or entry points are named. Review the Python implementation to identify the if-else chains that branch on types and determine the scope before changing them to match statements. Done means the applicable conditional chains have been refactored without changing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100