plotly / plotly/dash

Mistake/Incorrect value in Error Message

Open
#2,407 3 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.