Guido van Rossum <gu...@python.org> added the comment:

Yeah, I think help() or pydoc needs to special-case this. (Didn't your other PR 
attempt to fix this?)

Note that issubclass(list[int].__class__, type) returns True -- the __class__ 
attribute in this case is taken from __origin__, while type() returns the 
"true" class.

I don't know what to do about __subclasses__ -- I expect we should just let it 
be this way.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40296>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to