We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf8555 commit ac02dd5Copy full SHA for ac02dd5
mypy/stubtest.py
@@ -1544,6 +1544,8 @@ def safe_inspect_signature(
1544
# self parameter.
1545
runtime_objclass = None
1546
if runtime.__objclass__ is object:
1547
+ # When __objclass__ is object, use the object_path to look up
1548
+ # the actual class that this __init__ method came from.
1549
if object_path:
1550
module_name = ".".join(object_path[:-2])
1551
module = silent_import_module(module_name)
0 commit comments