This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gvanrossum, serhiy.storchaka
Date 2020-04-15.20:50:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586983817.03.0.686824683966.issue40296@roundup.psfhosted.org>
In-reply-to
Content
>>> help(list[int])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/_sitebuiltins.py", line 103, in __call__
    return pydoc.help(*args, **kwds)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1905, in __call__
    self.help(request)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1964, in help
    else: doc(request, 'Help on %s:', output=self._output)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1684, in doc
    pager(render_doc(thing, title, forceload))
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1677, in render_doc
    return title % desc + '\n\n' + renderer.document(object, name)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 381, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1251, in docclass
    (str(cls.__name__) for cls in type.__subclasses__(object)
TypeError: descriptor '__subclasses__' for 'type' objects doesn't apply to a 'types.GenericAlias' object
History
Date User Action Args
2020-04-15 20:50:17serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum
2020-04-15 20:50:17serhiy.storchakasetmessageid: <1586983817.03.0.686824683966.issue40296@roundup.psfhosted.org>
2020-04-15 20:50:17serhiy.storchakalinkissue40296 messages
2020-04-15 20:50:16serhiy.storchakacreate