-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forward reference
issubclass()
proxying x 1.
This commit is the first in a commit chain generalizing our support for subscripted forward references (e.g., `"type[MuhClass]"`) to proxy both `isinstance()` *and* `issubclass()` type-checks, en-route to resolving issue #289 kindly submitted by Google X extraordinaire @patrick-kidger (Patrick Kidger). Previously, subscripted forward references erroneously proxied only `isinstance()` type-checks; this omission prevented these references from correctly resolving subscriptions of the PEP 585-compliant `type[...]` builtin by a forward reference to a class that has yet to be defined. Specifically, this commit implements (but has yet to exhaustively test) this generalization. Praise be to the Kidger. (*Masterful blaster in Electric City full of fulsome elasticity!*)
- Loading branch information
Showing
3 changed files
with
125 additions
and
27 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