-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix attribute type resolution with multiple inheritance (#18415)
Fixes #18268. Fixes #9319. Fixes #14279. Fixes #9031. Supersedes #18270 as requested by @ilevkivskyi. This PR introduces two changes: * Add missing `map_type_from_supertype` when checking generic attributes * Only compare the first base defining a name to all following in MRO - others are not necessarily pairwise compatible. --------- Co-authored-by: Shantanu <[email protected]>
- Loading branch information
1 parent
106f714
commit d86b1e5
Showing
3 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters