From fd4e1e0c29fb077b6bb92b140c4a5e921a064ab7 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 15 Mar 2026 17:10:50 +0000 Subject: [PATCH] [ty] Fix compiler warning about unused variable --- crates/ty_python_semantic/src/types/relation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ty_python_semantic/src/types/relation.rs b/crates/ty_python_semantic/src/types/relation.rs index 484eaac30fed37..e8015749884fc1 100644 --- a/crates/ty_python_semantic/src/types/relation.rs +++ b/crates/ty_python_semantic/src/types/relation.rs @@ -675,7 +675,7 @@ impl<'a, 'c, 'db> TypeRelationChecker<'a, 'c, 'db> { // Pretend that instances of `dataclasses.Field` are assignable to their default type. // This allows field definitions like `name: str = field(default="")` in dataclasses // to pass the assignability check of the inferred type to the declared type. - (Type::KnownInstance(KnownInstanceType::Field(field)), right) + (Type::KnownInstance(KnownInstanceType::Field(field)), _) if self.relation.is_assignability() => { field