diff --git a/crates/ty_python_semantic/src/types/visitor.rs b/crates/ty_python_semantic/src/types/visitor.rs index 73a31c5f33..38ef7538ce 100644 --- a/crates/ty_python_semantic/src/types/visitor.rs +++ b/crates/ty_python_semantic/src/types/visitor.rs @@ -1,5 +1,7 @@ +use rustc_hash::FxHashSet; + use crate::{ - Db, FxIndexSet, + Db, types::{ BoundMethodType, BoundSuperType, BoundTypeVarInstance, CallableType, GenericAlias, IntersectionType, KnownBoundMethodType, KnownInstanceType, NominalInstanceType, @@ -277,7 +279,7 @@ pub(crate) fn walk_type_with_recursion_guard<'db>( } #[derive(Default, Debug)] -pub(crate) struct TypeCollector<'db>(RefCell>>); +pub(crate) struct TypeCollector<'db>(RefCell>>); impl<'db> TypeCollector<'db> { pub(crate) fn type_was_already_seen(&self, ty: Type<'db>) -> bool {