Skip to content

feat: __repr__ method for RefExpr and NameExpr #19486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BobTheBuidler
Copy link
Contributor

@BobTheBuidler BobTheBuidler commented Jul 21, 2025

The addition of these 2 simple reprs was helpful for me for debugging a mypyc compilation issue locally

There's still a bug in the compiler, but I was able to figure out which var(s) were problematic and implement a hacky fix within my own codebase. I'd like to contribute them to the repo to help other people in similar situations in the future.

I don't have enough knowledge of mypyc internals to be of more help in this case. Perhaps this PR will enable a future developer to fix the root cause.

The addition of these 2 simple reprs was helpful for me for debugging a compiler issue locally
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant