@@ -60,7 +60,7 @@ Y: int = 47
6060import mypackage
6161
6262reveal_type(mypackage.imported.X) # revealed: int
63- # error: "has no member `fails`"
63+ # error: [unresolved-attribute]
6464reveal_type(mypackage.fails.Y) # revealed: Unknown
6565```
6666
@@ -90,7 +90,7 @@ Y: int = 47
9090import mypackage
9191
9292reveal_type(mypackage.imported.X) # revealed: int
93- # error: "has no member `fails`"
93+ # error: [unresolved-attribute]
9494reveal_type(mypackage.fails.Y) # revealed: Unknown
9595```
9696
@@ -125,7 +125,7 @@ Y: int = 47
125125import mypackage
126126
127127reveal_type(mypackage.imported.X) # revealed: int
128- # error: "has no member `fails`"
128+ # error: [unresolved-attribute]
129129reveal_type(mypackage.fails.Y) # revealed: Unknown
130130```
131131
@@ -155,7 +155,7 @@ Y: int = 47
155155import mypackage
156156
157157reveal_type(mypackage.imported.X) # revealed: int
158- # error: "has no member `fails`"
158+ # error: [unresolved-attribute]
159159reveal_type(mypackage.fails.Y) # revealed: Unknown
160160```
161161
@@ -184,7 +184,7 @@ X: int = 42
184184import mypackage
185185
186186# TODO : this could work and would be nice to have?
187- # error: "has no member `imported`"
187+ # error: [unresolved-attribute]
188188reveal_type(mypackage.imported.X) # revealed: Unknown
189189```
190190
@@ -208,7 +208,7 @@ X: int = 42
208208import mypackage
209209
210210# TODO : this could work and would be nice to have
211- # error: "has no member `imported`"
211+ # error: [unresolved-attribute]
212212reveal_type(mypackage.imported.X) # revealed: Unknown
213213```
214214
@@ -241,15 +241,15 @@ X: int = 42
241241``` py
242242import mypackage
243243
244- # error: "has no member `submodule`"
244+ # error: [unresolved-attribute]
245245reveal_type(mypackage.submodule) # revealed: Unknown
246- # error: "has no member `submodule`"
246+ # error: [unresolved-attribute]
247247reveal_type(mypackage.submodule.nested) # revealed: Unknown
248- # error: "has no member `submodule`"
248+ # error: [unresolved-attribute]
249249reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
250- # error: "has no member `nested`"
250+ # error: [unresolved-attribute]
251251reveal_type(mypackage.nested) # revealed: Unknown
252- # error: "has no member `nested`"
252+ # error: [unresolved-attribute]
253253reveal_type(mypackage.nested.X) # revealed: Unknown
254254```
255255
@@ -281,9 +281,9 @@ import mypackage
281281
282282reveal_type(mypackage.submodule) # revealed: <module 'mypackage.submodule'>
283283# TODO : this would be nice to support
284- # error: "has no member `nested`"
284+ # error: [unresolved-attribute]
285285reveal_type(mypackage.submodule.nested) # revealed: Unknown
286- # error: "has no member `nested`"
286+ # error: [unresolved-attribute]
287287reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
288288reveal_type(mypackage.nested) # revealed: <module 'mypackage.submodule.nested'>
289289reveal_type(mypackage.nested.X) # revealed: int
@@ -319,15 +319,15 @@ X: int = 42
319319import mypackage
320320
321321# TODO : this could work and would be nice to have
322- # error: "has no member `submodule`"
322+ # error: [unresolved-attribute]
323323reveal_type(mypackage.submodule) # revealed: Unknown
324- # error: "has no member `submodule`"
324+ # error: [unresolved-attribute]
325325reveal_type(mypackage.submodule.nested) # revealed: Unknown
326- # error: "has no member `submodule`"
326+ # error: [unresolved-attribute]
327327reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
328- # error: "has no member `nested`"
328+ # error: [unresolved-attribute]
329329reveal_type(mypackage.nested) # revealed: Unknown
330- # error: "has no member `nested`"
330+ # error: [unresolved-attribute]
331331reveal_type(mypackage.nested.X) # revealed: Unknown
332332```
333333
@@ -359,9 +359,9 @@ import mypackage
359359
360360reveal_type(mypackage.submodule) # revealed: <module 'mypackage.submodule'>
361361# TODO : this would be nice to support
362- # error: "has no member `nested`"
362+ # error: [unresolved-attribute]
363363reveal_type(mypackage.submodule.nested) # revealed: Unknown
364- # error: "has no member `nested`"
364+ # error: [unresolved-attribute]
365365reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
366366reveal_type(mypackage.nested) # revealed: <module 'mypackage.submodule.nested'>
367367reveal_type(mypackage.nested.X) # revealed: int
@@ -396,11 +396,11 @@ X: int = 42
396396``` py
397397import mypackage
398398
399- # error: "has no member `submodule`"
399+ # error: [unresolved-attribute]
400400reveal_type(mypackage.submodule) # revealed: Unknown
401- # error: "has no member `submodule`"
401+ # error: [unresolved-attribute]
402402reveal_type(mypackage.submodule.nested) # revealed: Unknown
403- # error: "has no member `submodule`"
403+ # error: [unresolved-attribute]
404404reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
405405```
406406
@@ -432,11 +432,11 @@ X: int = 42
432432import mypackage
433433
434434# TODO : this would be nice to support
435- # error: "has no member `submodule`"
435+ # error: [unresolved-attribute]
436436reveal_type(mypackage.submodule) # revealed: Unknown
437- # error: "has no member `submodule`"
437+ # error: [unresolved-attribute]
438438reveal_type(mypackage.submodule.nested) # revealed: Unknown
439- # error: "has no member `submodule`"
439+ # error: [unresolved-attribute]
440440reveal_type(mypackage.submodule.nested.X) # revealed: Unknown
441441```
442442
@@ -463,9 +463,9 @@ X: int = 42
463463``` py
464464import mypackage
465465
466- # error: "has no member `imported`"
466+ # error: [unresolved-attribute]
467467reveal_type(mypackage.imported.X) # revealed: Unknown
468- # error: "has no member `imported_m`"
468+ # error: [unresolved-attribute]
469469reveal_type(mypackage.imported_m.X) # revealed: Unknown
470470```
471471
@@ -489,7 +489,7 @@ X: int = 42
489489import mypackage
490490
491491# TODO : this would be nice to support, as it works at runtime
492- # error: "has no member `imported`"
492+ # error: [unresolved-attribute]
493493reveal_type(mypackage.imported.X) # revealed: Unknown
494494reveal_type(mypackage.imported_m.X) # revealed: int
495495```
@@ -623,7 +623,7 @@ X: int = 42
623623``` py
624624import mypackage
625625
626- # error: "no member `imported`"
626+ # error: [unresolved-attribute]
627627reveal_type(mypackage.imported.X) # revealed: Unknown
628628```
629629
@@ -676,7 +676,7 @@ from mypackage import imported
676676# TODO : this would be nice to support, but it's dangerous with available_submodule_attributes
677677# for details, see: https://github.com/astral-sh/ty/issues/1488
678678reveal_type(imported.X) # revealed: int
679- # error: "has no member `imported`"
679+ # error: [unresolved-attribute]
680680reveal_type(mypackage.imported.X) # revealed: Unknown
681681```
682682
@@ -699,9 +699,10 @@ X: int = 42
699699import mypackage
700700from mypackage import imported
701701
702- # TODO : this would be nice to support, as it works at runtime
703702reveal_type(imported.X) # revealed: int
704- # error: "has no member `imported`"
703+
704+ # TODO : this would be nice to support, as it works at runtime
705+ # error: [unresolved-attribute]
705706reveal_type(mypackage.imported.X) # revealed: Unknown
706707```
707708
@@ -737,9 +738,9 @@ import mypackage
737738from mypackage import imported
738739
739740reveal_type(imported.X) # revealed: int
740- # error: "has no member `fails`"
741+ # error: [unresolved-attribute]
741742reveal_type(imported.fails.Y) # revealed: Unknown
742- # error: "has no member `fails`"
743+ # error: [unresolved-attribute]
743744reveal_type(mypackage.fails.Y) # revealed: Unknown
744745```
745746
@@ -772,7 +773,7 @@ from mypackage import imported
772773
773774reveal_type(imported.X) # revealed: int
774775reveal_type(imported.fails.Y) # revealed: int
775- # error: "has no member `fails`"
776+ # error: [unresolved-attribute]
776777reveal_type(mypackage.fails.Y) # revealed: Unknown
777778```
778779
0 commit comments