Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update mypy/stubtest.py
Co-authored-by: Brian Schubert <[email protected]>
  • Loading branch information
Vikash-Kumar-23 and brianschubert authored Feb 22, 2026
commit 2cc6b430de88ee24bb603d9bb4fc70b60016a712
1 change: 1 addition & 0 deletions mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,7 @@ def verify_var(
f"is inconsistent, stub value {stub.final_value!r} differs from runtime value {runtime!r}",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime object could potentially have a very long repr, which we wouldn't want included in the error message. It's also already rendered in the output (with length truncation), so including in the message isn't necessary.

stub,
runtime,
Comment thread
Vikash-Kumar-23 marked this conversation as resolved.
Outdated
stub_desc=repr(stub.final_value),
)

if (
Expand Down