@@ -68,7 +68,7 @@ def g(x: str) -> None: pass
68
68
[builtins fixtures/fine_grained.pyi]
69
69
[out]
70
70
==
71
- main:3: error: "module " has no attribute "f"
71
+ main:3: error: "ModuleType " has no attribute "f"
72
72
73
73
[case testTopLevelMissingModuleAttribute]
74
74
import m
@@ -81,7 +81,7 @@ def g(x: int) -> None: pass
81
81
[builtins fixtures/fine_grained.pyi]
82
82
[out]
83
83
==
84
- main:2: error: "module " has no attribute "f"
84
+ main:2: error: "ModuleType " has no attribute "f"
85
85
86
86
[case testClassChangedIntoFunction]
87
87
import m
@@ -241,7 +241,7 @@ class A: pass
241
241
[builtins fixtures/fine_grained.pyi]
242
242
[out]
243
243
==
244
- main:3: error: "module " has no attribute "A"
244
+ main:3: error: "ModuleType " has no attribute "A"
245
245
==
246
246
247
247
[case testContinueToReportTypeCheckError]
@@ -281,10 +281,10 @@ class A: pass
281
281
[builtins fixtures/fine_grained.pyi]
282
282
[out]
283
283
==
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"
286
286
==
287
- main:5: error: "module " has no attribute "B"
287
+ main:5: error: "ModuleType " has no attribute "B"
288
288
289
289
[case testContinueToReportErrorAtTopLevel]
290
290
import n
@@ -348,9 +348,9 @@ def g() -> None: pass
348
348
[builtins fixtures/fine_grained.pyi]
349
349
[out]
350
350
main: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"
352
352
==
353
- main:5: error: "module " has no attribute "g"
353
+ main:5: error: "ModuleType " has no attribute "g"
354
354
==
355
355
356
356
[case testKeepReportingErrorIfNoChanges]
@@ -361,9 +361,9 @@ def h() -> None:
361
361
[file m.py.2]
362
362
[builtins fixtures/fine_grained.pyi]
363
363
[out]
364
- main:3: error: "module " has no attribute "g"
364
+ main:3: error: "ModuleType " has no attribute "g"
365
365
==
366
- main:3: error: "module " has no attribute "g"
366
+ main:3: error: "ModuleType " has no attribute "g"
367
367
368
368
[case testFixErrorAndReintroduce]
369
369
import m
@@ -375,10 +375,10 @@ def g() -> None: pass
375
375
[file m.py.3]
376
376
[builtins fixtures/fine_grained.pyi]
377
377
[out]
378
- main:3: error: "module " has no attribute "g"
378
+ main:3: error: "ModuleType " has no attribute "g"
379
379
==
380
380
==
381
- main:3: error: "module " has no attribute "g"
381
+ main:3: error: "ModuleType " has no attribute "g"
382
382
383
383
[case testAddBaseClassMethodCausingInvalidOverride]
384
384
import m
0 commit comments