@@ -68,7 +68,7 @@ def g(x: str) -> None: pass
6868[builtins fixtures/fine_grained.pyi]
6969[out]
7070==
71- main:3: error: "module " has no attribute "f"
71+ main:3: error: "ModuleType " has no attribute "f"
7272
7373[case testTopLevelMissingModuleAttribute]
7474import m
@@ -81,7 +81,7 @@ def g(x: int) -> None: pass
8181[builtins fixtures/fine_grained.pyi]
8282[out]
8383==
84- main:2: error: "module " has no attribute "f"
84+ main:2: error: "ModuleType " has no attribute "f"
8585
8686[case testClassChangedIntoFunction]
8787import m
@@ -241,7 +241,7 @@ class A: pass
241241[builtins fixtures/fine_grained.pyi]
242242[out]
243243==
244- main:3: error: "module " has no attribute "A"
244+ main:3: error: "ModuleType " has no attribute "A"
245245==
246246
247247[case testContinueToReportTypeCheckError]
@@ -281,10 +281,10 @@ class A: pass
281281[builtins fixtures/fine_grained.pyi]
282282[out]
283283==
284- main:3: error: "module " has no attribute "A"
285- main:5: error: "module " has no attribute "B"
284+ main:3: error: "ModuleType " has no attribute "A"
285+ main:5: error: "ModuleType " has no attribute "B"
286286==
287- main:5: error: "module " has no attribute "B"
287+ main:5: error: "ModuleType " has no attribute "B"
288288
289289[case testContinueToReportErrorAtTopLevel]
290290import n
@@ -348,9 +348,9 @@ def g() -> None: pass
348348[builtins fixtures/fine_grained.pyi]
349349[out]
350350main:3: error: Too few arguments for "f"
351- main:5: error: "module " has no attribute "g"
351+ main:5: error: "ModuleType " has no attribute "g"
352352==
353- main:5: error: "module " has no attribute "g"
353+ main:5: error: "ModuleType " has no attribute "g"
354354==
355355
356356[case testKeepReportingErrorIfNoChanges]
@@ -361,9 +361,9 @@ def h() -> None:
361361[file m.py.2]
362362[builtins fixtures/fine_grained.pyi]
363363[out]
364- main:3: error: "module " has no attribute "g"
364+ main:3: error: "ModuleType " has no attribute "g"
365365==
366- main:3: error: "module " has no attribute "g"
366+ main:3: error: "ModuleType " has no attribute "g"
367367
368368[case testFixErrorAndReintroduce]
369369import m
@@ -375,10 +375,10 @@ def g() -> None: pass
375375[file m.py.3]
376376[builtins fixtures/fine_grained.pyi]
377377[out]
378- main:3: error: "module " has no attribute "g"
378+ main:3: error: "ModuleType " has no attribute "g"
379379==
380380==
381- main:3: error: "module " has no attribute "g"
381+ main:3: error: "ModuleType " has no attribute "g"
382382
383383[case testAddBaseClassMethodCausingInvalidOverride]
384384import m
0 commit comments