SIGN IN SIGN UP

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__.
S
Sebastian Rittau committed
8b849ea0f3482ad834e7989ff474dd5db2f295c8
Parent: f64de53
Committed by GitHub <noreply@github.com> on 7/6/2021, 3:01:15 PM