Incorrect type hint in `pad_func`
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- machine-learning
Research direction
Open monai/transforms/croppad/functional.py at line 153 and inspect the to_pad annotation. Update the annotation so it represents one integer pair per dimension, then run the relevant project checks to confirm the accepted type and existing behavior remain unchanged.
Written by the indexing model from the issue text.
Description
Problem
The to_pad argument has type hint tuple[tuple[int, int]]. This means a tuple that contains a single tuple of 2 ints. We want to be able to pass a tuple for every dimension.
Proposed fix
Set type hint to Sequence[tuple[int, int]] instead.
Affected files
monai/transforms/croppad/functional.py (line 153)
- Dominant language
- Python
- Stars
- 8.7k
- Forks
- 1.6k
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 22
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 Project-MONAI/MONAI
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Project-MONAI/MONAI#9068 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Project-MONAI/MONAI#9046 ·
-
CI/CD
Project-MONAI/MONAI#9119 · 1 comment · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Project-MONAI/MONAI#9116 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Project-MONAI/MONAI#9111 ·
All issues in Project-MONAI/MONAI
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 ·