]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38291: Fix a spurious warning when using help(object) (#27039)
authorSebastian Rittau <srittau@rittau.biz>
Tue, 6 Jul 2021 15:01:15 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Jul 2021 15:01:15 +0000 (08:01 -0700)
commit8b849ea0f3482ad834e7989ff474dd5db2f295c8
treef850475382463652ef3f47974346b61738ee138f
parentf64de53ff01e734d48d1d42195443d7d1646f220
bpo-38291: Fix a spurious warning when using help(object) (#27039)

help(object) via pydoc.TextDoc.docclass(object) iterates over the
subclasses of object, which includes typing.io and typing.re if typing
is imported. It tries to access cls.__module__ for each of those
sub-classes. This change suppresses warnings when accessing
cls.__module__.
Lib/typing.py