From 0db8d41873ea7c3c206e7a15f3f6d6ada928b546 Mon Sep 17 00:00:00 2001 From: David Peter Date: Wed, 22 Oct 2025 16:50:29 +0200 Subject: [PATCH] Fix tests --- .../resources/mdtest/attributes.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/crates/ty_python_semantic/resources/mdtest/attributes.md b/crates/ty_python_semantic/resources/mdtest/attributes.md index 443a17d458..9e32425cd7 100644 --- a/crates/ty_python_semantic/resources/mdtest/attributes.md +++ b/crates/ty_python_semantic/resources/mdtest/attributes.md @@ -401,19 +401,9 @@ class TupleIterable: class C: def __init__(self) -> None: - # TODO: Should not emit this diagnostic - # error: [unresolved-attribute] [... for self.a in IntIterable()] - # TODO: Should not emit this diagnostic - # error: [unresolved-attribute] - # error: [unresolved-attribute] [... for (self.b, self.c) in TupleIterable()] - # TODO: Should not emit this diagnostic - # error: [unresolved-attribute] - # error: [unresolved-attribute] [... for self.d in IntIterable() for self.e in IntIterable()] - # TODO: Should not emit this diagnostic - # error: [unresolved-attribute] [[... for self.f in IntIterable()] for _ in IntIterable()] [[... for self.g in IntIterable()] for self in [D()]] @@ -461,9 +451,11 @@ If the comprehension is inside another scope like function then that attribute i class C: def __init__(self): def f(): + # error: [unresolved-attribute] "Unresolved attribute `a` on type `Self@__init__`." [... for self.a in IntIterable()] def g(): + # error: [unresolved-attribute] "Unresolved attribute `b` on type `Self@__init__`." [... for self.b in IntIterable()] g()