-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement typing_extensions.Any #68
Conversation
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.
LGTM, except for the minor flake8 error, but I'd like @hauntsaninja's feedback.
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.
Thanks, this looks good to me, just had one nit about testing
@@ -160,6 +160,32 @@ def test_exception(self): | |||
assert_never(None) | |||
|
|||
|
|||
class AnyTests(BaseTestCase): | |||
class SubclassesAny(Any): |
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.
Let's put this into an actual test case?
Wouldn't hurt to copy over the tests from test_can_subclass
in the original PR; I seem to recall there was some trickiness wrt inheritance, so might as well test it.
Backport from 3.11+ version (also with fix from python/cpython#95987)