Skip to content

Commit ac02dd5

Browse files
committed
add a note
1 parent ecf8555 commit ac02dd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/stubtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,6 +1544,8 @@ def safe_inspect_signature(
15441544
# self parameter.
15451545
runtime_objclass = None
15461546
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.
15471549
if object_path:
15481550
module_name = ".".join(object_path[:-2])
15491551
module = silent_import_module(module_name)

0 commit comments

Comments
 (0)