Mistake/Incorrect value in Error Message
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
I think the error message in this line is incorrect: https://github.com/plotly/dash/blob/dev/dash/_validate.py#L196
Should this line be
Expected {len(outi)}, got {len(vi)}
instead of
Expected {len(vi)}, got {len(outi)}
?
My understanding is outi is the output_list (aka output spec), while vi is the actual output value.
Thank you
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 at dash/_validate.py line 196 and inspect how outi and vi are used in the surrounding validation logic. Confirm which value represents the expected output specification and which is the actual output, then correct the error-message wording if needed. Done means the message reports the expected and received lengths in the correct order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100