-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 generic alias test cases #4239
Conversation
These are the current
Python 3.8
Python 3.9
|
Very nice ! We clearly lacked tests for python 3.9. |
It isn't as bad as it might seem! TBH it's a small miracle that there aren't more. I frequently get confused what works in which version and in what setting (assignment, type annotation, with or without postponed evaluation). These tests should help with that and make it at least a bit easier. Always assuming that there isn't a bug in there as well 😅 This was one of the reasons I started working on the pylint support. If pylint is able to detect the errors, it should help a lot of devs who use typing, especially until 3.10 is the default. |
@cdce8p very nice job! It is a great help for setting up astroid's typing and collection brain! |
All tests pass, finally! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is VERY satisfying. Wow 😄
🎉 🥳 |
Very nice job @cdce8p ! Congrats! |
Steps
doc/whatsnew/<current release.rst>
.Description
Add new test cases for
generic_alias
to make validating any updates a bit easier.At the moment, some errors are still undetected that should be recognized.
Related
#4206
pylint-dev/astroid#921
Type of Changes