-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix generic inheritance for attrs init methods #9383
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
Conversation
54dc7f5
to
5619bfa
Compare
It seems CI is currently broken on this project. The errors in windows builds appear to be a problem with the C++ toolchain, and on Travis, something is broken with setuptools. Not sure how to resolve those errors as they appear unrelated to my proposed changes. |
Maybe this message on python-dev provides a clue? https://mail.python.org/archives/list/[email protected]/message/TJE5XWLKRC3EQUXKSHCJNA25H3WGVP5B/ |
Looks like pypa/setuptools#2350 (or similar), I'll try to submit a PR using the env var workaround. |
CI is passing now on this PR. :) |
Friendly bump for review :) |
Hello there, checking in again. I merged from master and pushed to my branch to ensure this PR is still merge-conflict free and passing tests. Any chance I can get a review? Thanks! |
Thank you again! :-) |
Description
Fixes #5744
Updates the attrs plugin. Instead of directly copying attribute type along the MRO, this first resolves typevar in the context of the subtype.
Test Plan
Added 4 new test cases to cover various generic inheritance scenarios.