-
Notifications
You must be signed in to change notification settings - Fork 228
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
Spec: Specify how inheriting from Any works #1546
Comments
An enlightening use case in typeshed we use this for is typing There was also some discussion a few months back in https://mail.python.org/archives/list/[email protected]/thread/NEUCPDTUHMH77VOLXIG56Y7SDOECAKHB/#NEUCPDTUHMH77VOLXIG56Y7SDOECAKHB I'd propose that we treat it the same as subclassing an unknown symbol, although to my knowledge how that should be treated is not really specified either. |
Strong +1 for specifying the semantics for this. Prior discussion on typing-sig: https://mail.python.org/archives/list/[email protected]/thread/NEUCPDTUHMH77VOLXIG56Y7SDOECAKHB/#NEUCPDTUHMH77VOLXIG56Y7SDOECAKHB. |
I can't find anywhere in the current spec where we specify how inheriting from
Any
should work. I've heard that it's relied upon in typeshed. (E.g.class pmem(Any)
in gevent and psutil, andclass _NotImplementedType(Any)
in builtins.)The text was updated successfully, but these errors were encountered: