From 72e0c32a99681eaca7ca36fd80625870e47ffca1 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Sun, 7 Dec 2025 14:51:21 -0500 Subject: [PATCH] clippy --- crates/ty_python_semantic/src/types/generics.rs | 9 ++++----- crates/ty_python_semantic/src/types/signatures.rs | 8 ++------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/crates/ty_python_semantic/src/types/generics.rs b/crates/ty_python_semantic/src/types/generics.rs index c39fb3872e..ddc6e729b0 100644 --- a/crates/ty_python_semantic/src/types/generics.rs +++ b/crates/ty_python_semantic/src/types/generics.rs @@ -13,15 +13,14 @@ use crate::types::class::ClassType; use crate::types::class_base::ClassBase; use crate::types::constraints::ConstraintSet; use crate::types::instance::{Protocol, ProtocolInstanceType}; -use crate::types::signatures::{Parameters, ParametersKind}; +use crate::types::signatures::Parameters; use crate::types::tuple::{TupleSpec, TupleType, walk_tuple_type}; use crate::types::visitor::{TypeCollector, TypeVisitor, walk_type_with_recursion_guard}; use crate::types::{ ApplyTypeMappingVisitor, BindingContext, BoundTypeVarIdentity, BoundTypeVarInstance, - CallableSignature, CallableType, CallableTypeKind, CallableTypes, ClassLiteral, - FindLegacyTypeVarsVisitor, HasRelationToVisitor, IsDisjointVisitor, IsEquivalentVisitor, - KnownClass, KnownInstanceType, MaterializationKind, NormalizedVisitor, Signature, Type, - TypeContext, TypeMapping, TypeRelation, TypeVarBoundOrConstraints, TypeVarIdentity, + ClassLiteral, FindLegacyTypeVarsVisitor, HasRelationToVisitor, IsDisjointVisitor, + IsEquivalentVisitor, KnownClass, KnownInstanceType, MaterializationKind, NormalizedVisitor, + Type, TypeContext, TypeMapping, TypeRelation, TypeVarBoundOrConstraints, TypeVarIdentity, TypeVarInstance, TypeVarKind, TypeVarVariance, UnionType, declaration_type, walk_bound_type_var_type, }; diff --git a/crates/ty_python_semantic/src/types/signatures.rs b/crates/ty_python_semantic/src/types/signatures.rs index fa7ef45d64..015663a821 100644 --- a/crates/ty_python_semantic/src/types/signatures.rs +++ b/crates/ty_python_semantic/src/types/signatures.rs @@ -153,10 +153,6 @@ impl<'db> CallableSignature<'db> { self.overloads.iter() } - pub(crate) fn as_slice(&self) -> &[Signature<'db>] { - &self.overloads - } - pub(crate) fn with_inherited_generic_context( &self, db: &'db dyn Db, @@ -401,8 +397,8 @@ impl<'db> CallableSignature<'db> { } /// Checks whether the given slice contains a single signature, and that signature is a - /// ParamSpec signature. If so, returns the [`BoundTypeVarInstance`] for the ParamSpec, along - /// with the return type of the signature. + /// `ParamSpec` signature. If so, returns the [`BoundTypeVarInstance`] for the `ParamSpec`, + /// along with the return type of the signature. fn signatures_is_single_paramspec( signatures: &[Signature<'db>], ) -> Option<(BoundTypeVarInstance<'db>, Option>)> {