-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add assertion passes #2158
Comments
Some random notes and thoughts:
|
Sounds reasonable. I'd recommend starting with a simple |
Just a few extra thoughts:
|
Agreed, it would be super useful to be able to run mypy against a codebase with the checks on. |
I think I've found a type error running a very naive pass, doing nothing more than
(Please correct me if I'm missing anything here) |
Good catch! I guess there's no unit test for this one. :-(
|
And no type annotations. PR: #2162 |
(Stealing text from #2150)
It would be nice to have "assertion passes" between the different passes, to verify and document the post-conditions of each pass and pre-conditions of the next, without adding more clutter to the code. Examples (due to Jukka):
In addition, currently breaking something in e.g. the semantic analysis pass, is likely to result in a seemingly unrelated error message in latter phases. Of course it cannot be completely avoided, but it can be reduced.
I don't have any concrete design in mind. My intention is that the scope, nature, design and other details are to be fleshed out in this thread. The idea is very half-baked, so I'm looking forward for your comments.
The text was updated successfully, but these errors were encountered: