@@ -25,12 +25,12 @@ use crate::types::signatures::{CallableSignature, Parameter, Parameters, Signatu
2525use  crate :: types:: tuple:: { TupleSpec ,  TupleType } ; 
2626use  crate :: types:: typed_dict:: typed_dict_params_from_class_def; 
2727use  crate :: types:: { 
28-     ApplyTypeMappingVisitor ,  Binding ,  BoundSuperError ,   BoundSuperType ,   CallableType , 
29-     DataclassParams ,  DeprecatedInstance ,  FindLegacyTypeVarsVisitor ,   HasRelationToVisitor , 
30-     IsEquivalentVisitor ,  KnownInstanceType ,  ManualPEP695TypeAliasType ,   MaterializationKind , 
31-     NormalizedVisitor ,  PropertyInstanceType ,  StringLiteralType ,  TypeAliasType ,   TypeMapping , 
32-     TypeRelation ,  TypeVarBoundOrConstraints ,  TypeVarInstance ,  TypeVarKind ,   TypedDictParams , 
33-     UnionBuilder ,  VarianceInferable ,  declaration_type,  infer_definition_types, 
28+     ApplyTypeMappingVisitor ,  Binding ,  BindingContext ,   BoundSuperError ,   BoundSuperType , 
29+     CallableType ,   DataclassParams ,  DeprecatedInstance ,  FindLegacyTypeVarsVisitor , 
30+     HasRelationToVisitor ,   IsEquivalentVisitor ,  KnownInstanceType ,  ManualPEP695TypeAliasType , 
31+     MaterializationKind ,   NormalizedVisitor ,  PropertyInstanceType ,  StringLiteralType ,  TypeAliasType , 
32+     TypeMapping ,   TypeRelation ,  TypeVarBoundOrConstraints ,  TypeVarInstance ,  TypeVarKind , 
33+     TypedDictParams ,   UnionBuilder ,  VarianceInferable ,  declaration_type,  infer_definition_types, 
3434} ; 
3535use  crate :: { 
3636    Db ,  FxIndexMap ,  FxOrderSet ,  Program , 
@@ -2257,6 +2257,15 @@ impl<'db> ClassLiteral<'db> {
22572257                    . own_class_member ( db,  self . generic_context ( db) ,  None ,  name) 
22582258                    . place 
22592259                    . ignore_possibly_unbound ( ) 
2260+                     . map ( |ty| { 
2261+                         ty. apply_type_mapping ( 
2262+                             db, 
2263+                             & TypeMapping :: BindSelf ( Type :: instance ( 
2264+                                 db, 
2265+                                 self . unknown_specialization ( db) , 
2266+                             ) ) , 
2267+                         ) 
2268+                     } ) 
22602269            } 
22612270            ( CodeGeneratorKind :: DataclassLike ,  "__replace__" ) 
22622271                if  Program :: get ( db) . python_version ( db)  >= PythonVersion :: PY313  =>
0 commit comments