-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interaction between typing_extensions and collections.abc (#503)
Fixes #501 The idea is straightforward: special classes in typing_extensions that have __extra__ should use a metaclass that fixes the problem in GenericMeta.__subclasscheck__ on older versions of typing. Note that overriding __subclasscheck__ tries to mimic the behaviour in the new versions of typing. (I can't just use super().__subclasscheck__ on unaffected versions, since this changes call stack depth and therefore breaks a sys._getframe hack on some other versions of typing.)
- Loading branch information
1 parent
2613161
commit 5911b7e
Showing
3 changed files
with
65 additions
and
3 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